陈德本 пре 6 година
родитељ
комит
777b43e218
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      App/Api/Controller/Search.php

+ 1 - 1
App/Api/Controller/Search.php

@@ -12,7 +12,7 @@ class Search extends Controller
 {
     public function main()
     {
-        $kw = $this->getQuery()->string("args_0");
+        $kw = $this->getQuery()->string("kw")?:$this->getQuery()->string("args_0");
         $bids = $this->getQuery()->string("bids");
         $cid = $this->getQuery()->string("cid");
         $request=[