Explorar el Código

批量添加允许Type和ChannelIndex为0

locky hace 3 años
padre
commit
6596f5e00b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Controller/EquipmentManagerV3.py

+ 2 - 2
Controller/EquipmentManagerV3.py

@@ -286,8 +286,8 @@ class EquipmentManagerV3(View):
                 View_Account = uid_content['viewAccount']
                 encryptPassword = uid_content['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长度
                     return response.json(444, {'error uid length': UID})