Browse Source

批量添加允许Type和ChannelIndex为0

locky 3 years ago
parent
commit
6596f5e00b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/EquipmentManagerV3.py

+ 2 - 2
Controller/EquipmentManagerV3.py

@@ -286,8 +286,8 @@ class EquipmentManagerV3(View):
                 View_Account = uid_content['viewAccount']
                 View_Account = uid_content['viewAccount']
                 encryptPassword = uid_content['encryptPassword']
                 encryptPassword = uid_content['encryptPassword']
                 View_Password = self.decode_pwd(encryptPassword)
                 View_Password = self.decode_pwd(encryptPassword)
-                if not all([UID, NickName, View_Account, Type]):  # ChannelIndex可能为0
-                    return response.json(444, {'param': 'UID, NickName, View_Account, Type, ChannelIndex'})
+                if not all([UID, NickName, View_Account]):  # Type和ChannelIndex可能为0
+                    return response.json(444, {'param': 'UID, NickName, View_Account'})
 
 
                 if not re_uid.match(UID):   # 检查uid长度
                 if not re_uid.match(UID):   # 检查uid长度
                     return response.json(444, {'error uid length': UID})
                     return response.json(444, {'error uid length': UID})