|
@@ -53,7 +53,7 @@ class IotCoreView(View):
|
|
|
distance = now_time - time_stamp
|
|
|
|
|
|
# if token != time_stamp and distance > 600: 暂时去掉延时
|
|
|
- if token != time_stamp:
|
|
|
+ if token != time_stamp :
|
|
|
return response.json(404)
|
|
|
|
|
|
region_country_qs = Device_Info.objects.filter(UID=uid).values('userID__region_country')
|
|
@@ -96,7 +96,7 @@ class IotCoreView(View):
|
|
|
distance = now_time - time_stamp
|
|
|
|
|
|
# if token != time_stamp and distance > 600: 暂时去掉延时
|
|
|
- if token != time_stamp or uid != uid_code or distance > 600 :
|
|
|
+ if token != time_stamp or uid != uid_code :
|
|
|
return response.json(404)
|
|
|
|
|
|
region_country_qs = Device_Info.objects.filter(UID=uid).values('userID__region_country')
|