Bläddra i källkod

设备获取证书

chenshibin 4 år sedan
förälder
incheckning
84622d39f1
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Controller/IotCoreController.py

+ 2 - 2
Controller/IotCoreController.py

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