Ken 2 дней назад
Родитель
Сommit
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);