|
@@ -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})
|