Browse Source

PC获取序列号3

chenshibin 4 năm trước cách đây
mục cha
commit
61ae7d4b9a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/SerialNumberController.py

+ 1 - 1
Controller/SerialNumberController.py

@@ -115,7 +115,7 @@ class SerialNumberView(View):
             now_time = int(time.time())
             distance = now_time - time_stamp
 
-            if token != time_stamp or distance > 300 or distance < 0:
+            if token != time_stamp or distance > 60000 or distance < 0:
                 return response.json(404)
 
             redisObject = RedisObject()