Ken před 2 dny
rodič
revize
cca98e72a9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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);