浏览代码

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

chenjunkai 6 年之前
父节点
当前提交
54de73fd70
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Controller/UserBrandController.py

+ 4 - 1
Controller/UserBrandController.py

@@ -97,7 +97,10 @@ class UserBrandInfo(View):
         longitude = request_dict.get('longitude', None)
         latitude = request_dict.get('latitude', None)
         appId = request_dict.get('appId', None)
-        param_area = CommonService.get_param_flag(data=[country,province,city,appId])
+        param_area = CommonService.get_param_flag(data=[country])
+        must_fill_in = CommonService.get_param_flag(data=[appId,deviceSupplier,deviceModel,osType,osVersion])
+        if must_fill_in is False:
+            return response.json(444,'appId,deviceSupplier,deviceModel,osType,osVersion')
         if  param_area is True:
             status = 1
             country = country