|
@@ -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)
|