Selaa lähdekoodia

设备获取证书

chenshibin 4 vuotta sitten
vanhempi
commit
84622d39f1
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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')