Explorar el Código

Merge branch 'pzb' of ssh://192.168.136.45:10022/SERVER/AnsjerServer into pzb

chenjunkai hace 6 años
padre
commit
63234873cf
Se han modificado 1 ficheros con 1 adiciones y 8 borrados
  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')