Przeglądaj źródła

Merge branch 'master' of https://git.97admin.com:433/chendeben/taoqu

chendeben 6 lat temu
rodzic
commit
47882640c2
1 zmienionych plików z 1 dodań i 1 usunięć
  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()
     public function main()
     {
     {
-        $kw = $this->getQuery()->string("args_0");
+        $kw = $this->getQuery()->string("kw")?:$this->getQuery()->string("args_0");
         $bids = $this->getQuery()->string("bids");
         $bids = $this->getQuery()->string("bids");
         $cid = $this->getQuery()->string("cid");
         $cid = $this->getQuery()->string("cid");
         $request=[
         $request=[