瀏覽代碼

批量添加允许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长度