chenjunkai 6 lat temu
rodzic
commit
8469edd075
1 zmienionych plików z 2 dodań i 0 usunięć
  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,