Эх сурвалжийг харах

批量添加允许ChannelIndex为0

locky 3 жил өмнө
parent
commit
625765bb4e

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -286,7 +286,7 @@ 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]):  # Type和ChannelIndex可能为0
+                if not all([UID, NickName, View_Account, Type]):  # ChannelIndex可能为0
                     return response.json(444, {'param': 'UID, NickName, View_Account, Type, ChannelIndex'})
 
                 if not re_uid.match(UID):   # 检查uid长度