|
@@ -90,6 +90,9 @@ class EquipmentManagerV3(View):
|
|
family_id = request_dict.get('familyId', None)
|
|
family_id = request_dict.get('familyId', None)
|
|
room_id = request_dict.get('roomId', None)
|
|
room_id = request_dict.get('roomId', None)
|
|
|
|
|
|
|
|
+ if not NickName:
|
|
|
|
+ NickName = UID[:6]
|
|
|
|
+
|
|
if not all([UID, NickName, View_Account, Type, ChannelIndex]): # Type和ChannelIndex可能为0
|
|
if not all([UID, NickName, View_Account, Type, ChannelIndex]): # Type和ChannelIndex可能为0
|
|
return response.json(444, {'param': 'UID, NickName, View_Account, Type, ChannelIndex'})
|
|
return response.json(444, {'param': 'UID, NickName, View_Account, Type, ChannelIndex'})
|
|
|
|
|