Browse Source

修改上传用户手机信息接口,兼容更新功能

tanghongbin 5 years ago
parent
commit
d21ed94112
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/UserBrandControllerV2.py

+ 2 - 1
Controller/UserBrandControllerV2.py

@@ -51,7 +51,8 @@ class UserBrandV2(View):
         if userID and deviceSupplier and deviceModel:
             ub_qs = User_Brand.objects.filter(userID=userID)
             if ub_qs.exists():
-                return response.json(174)
+                ub_qs.update(deviceSupplier=deviceSupplier, deviceModel=deviceModel)
+                return response.json(0)
             else:
                 user = Device_User.objects.filter(userID=userID)
                 if not user.exists():