Explorar o código

获取城市列表-丢失代码

rkljw hai 5 meses
pai
achega
5d6ec38128
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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("没有查到数据");
     }