|
@@ -33,9 +33,8 @@ def addNewUserEquipment(userID, deviceContent, response):
|
|
if is_bind:
|
|
if is_bind:
|
|
# return response.json(175)
|
|
# return response.json(175)
|
|
# 判断用户密码是否正确
|
|
# 判断用户密码是否正确
|
|
- dev_user = deviceData.get('View_Account', '')
|
|
|
|
dev_pass = deviceData.get('View_Password', '')
|
|
dev_pass = deviceData.get('View_Password', '')
|
|
- if is_bind[0].View_Account == dev_user and is_bind[0].View_Password == dev_pass:
|
|
|
|
|
|
+ if is_bind[0].View_Password == dev_pass:
|
|
deviceData['NickName'] = is_bind[0].NickName
|
|
deviceData['NickName'] = is_bind[0].NickName
|
|
if 'isShare' in deviceData:
|
|
if 'isShare' in deviceData:
|
|
deviceData['isShare'] = True
|
|
deviceData['isShare'] = True
|