瀏覽代碼

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

chendeben 6 年之前
父節點
當前提交
47882640c2
共有 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=[