chenjunkai 6 years ago
parent
commit
8469edd075
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Controller/EquipmentManager.py

+ 2 - 0
Controller/EquipmentManager.py

@@ -91,6 +91,8 @@ def addNewUserEquipmentInterface(request):
                             # 分享添加
                             if 'isShare' in deviceData:
                                 deviceData['isShare'] = True
+                            else:
+                                deviceData['isShare'] = True
                             bind_userID = is_bind[0].userID_id
                             userDevice = Device_Info(id=CommonService.getUserID(getUser=False),
                                                      userID_id=userID,