陈德本 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=[