pzb 6 years ago
parent
commit
408af0ca53
1 changed files with 1 additions and 8 deletions
  1. 1 8
      Controller/UserBrandController.py

+ 1 - 8
Controller/UserBrandController.py

@@ -100,13 +100,6 @@ class UserBrandInfo(View):
         longitude = request_dict.get('longitude', None)
         longitude = request_dict.get('longitude', None)
         latitude = request_dict.get('latitude', None)
         latitude = request_dict.get('latitude', None)
         appId = request_dict.get('appId', None)
         appId = request_dict.get('appId', None)
-
-        if country is None:
-            country=''
-        if province is None:
-            province=''
-        if city is None:
-            city = ''
         if area is None:
         if area is None:
             area=''
             area=''
         if street is None:
         if street is None:
@@ -115,7 +108,7 @@ class UserBrandInfo(View):
             longitude=''
             longitude=''
         if latitude is None:
         if latitude is None:
             latitude=''
             latitude=''
-        param_area = CommonService.get_param_flag(data=[country,province,city,longitude,latitude])
+        param_area = CommonService.get_param_flag(data=[country,province,city])
         must_fill_in = CommonService.get_param_flag(data=[appId,deviceSupplier,deviceModel,osType,osVersion])
         must_fill_in = CommonService.get_param_flag(data=[appId,deviceSupplier,deviceModel,osType,osVersion])
         if must_fill_in is False:
         if must_fill_in is False:
             return response.json(444,'appId,deviceSupplier,deviceModel,osType,osVersion')
             return response.json(444,'appId,deviceSupplier,deviceModel,osType,osVersion')