Ver código fonte

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

FengR 4 dias atrás
pai
commit
3461c0e92a
1 arquivos alterados com 1 adições e 1 exclusões
  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);