chenjunkai 7 жил өмнө
parent
commit
5390b30eda

+ 3 - 3
Controller/EquipmentManager.py

@@ -39,9 +39,9 @@ def addNewUserEquipment(userID, deviceContent, bulk = False):
             else:
                 UID = deviceData.get('UID', None)
                 if UID != None:
-                    # is_bind = Device_Info.objects.filter(UID = UID,isShare=False)
-                    # if is_bind:
-                    #     return ResponseFormal(175)
+                    is_bind = Device_Info.objects.filter(UID = UID,isShare=False)
+                    if is_bind:
+                        return ResponseFormal(175)
                     dValid = Device_Info.objects.filter(userID = userID, UID = UID)
                     if dValid:
                         return ResponseFormal(174)