瀏覽代碼

获取城市列表-丢失代码

rkljw 5 月之前
父節點
當前提交
5d6ec38128
共有 1 個文件被更改,包括 2 次插入0 次删除
  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("没有查到数据");
     }