Kirin 1 سال پیش
والد
کامیت
e954f5cd51
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 1 0
      app/controller/admin/v1/user/User.php
  2. 7 0
      app/services/other/CityAreaServices.php

+ 1 - 0
app/controller/admin/v1/user/User.php

@@ -505,6 +505,7 @@ class User extends AuthController
             ['area_admin_province', ''],
             ['area_admin_city', ''],
             ['area_admin_district', ''],
+            ['area_provincials', ''],
             ['extend_info', []]
         ]);
         if ($data['phone']) {

+ 7 - 0
app/services/other/CityAreaServices.php

@@ -132,6 +132,13 @@ class CityAreaServices extends BaseServices
 						}
 					}
 					break;
+                case 4:
+                    foreach ($cityList as &$item) {
+                        if ($item['level'] == 1) {
+                            unset($item['children'], $item['loading'], $item['_loading']);
+                        }
+                    }
+                    break;
 			}
 		}