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