Sfoglia il codice sorgente

获取城市列表-丢失代码

rkljw 7 mesi fa
parent
commit
5d6ec38128
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/JsonRpc/PublicRpcService.php

+ 2 - 0
app/JsonRpc/PublicRpcService.php

@@ -35,6 +35,8 @@ class PublicRpcService implements PublicRpcServiceInterface
                 'count'=>$count
 
             ];
+        }else{
+            $result = District::where($data)->orderBy("code","asc")->get();
         }
         return $result?Result::success($result):Result::error("没有查到数据");
     }