Преглед изворни кода

批量添加允许ChannelIndex为0

locky пре 3 година
родитељ
комит
625765bb4e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 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长度