Jelajahi Sumber

获取城市列表-丢失代码

rkljw 5 bulan lalu
induk
melakukan
5d6ec38128
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      app/JsonRpc/PublicRpcService.php

+ 2 - 0
app/JsonRpc/PublicRpcService.php

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