Ken 2 일 전
부모
커밋
cca98e72a9
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/Http/Controllers/api/Home.php

+ 2 - 1
app/Http/Controllers/api/Home.php

@@ -117,7 +117,8 @@ class Home extends Controller
 
     public function test()
     {
-        $target = 15;
+//        $target = 27;
+        $target =  request()->input('a',15);
         $matchingNumbers = $this->getMatchingNumbers($target);
         if ($matchingNumbers !== null) {
             echo "找到的数字是:" . implode(", ", $matchingNumbers);