瀏覽代碼

修改政讯项目c端:获取省份城市列表

FengR 4 天之前
父節點
當前提交
3461c0e92a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/JsonRpc/WebService.php

+ 1 - 1
app/JsonRpc/WebService.php

@@ -3814,7 +3814,7 @@ class WebService implements WebServiceInterface
   public function getWebsiteProvinceCity(array $data): array
   {
     $province_city = District::whereIn('level', [1,2])
-      ->select('id', 'name', 'pid', 'abbreviation')
+      ->select('id', 'name', 'pid', 'abbreviation','code')
       ->get()->all();
     if (empty($province_city)) {
       return Result::error("暂无相关省份城市信息", 0);