|
@@ -771,8 +771,13 @@ class EquipmentManagerV3(View):
|
|
|
|
|
|
if not all([token, time_stamp]):
|
|
if not all([token, time_stamp]):
|
|
return response.json(444)
|
|
return response.json(444)
|
|
|
|
+
|
|
|
|
+ token = int(CommonService.decode_data(token))
|
|
|
|
+ time_stamp = int(time_stamp)
|
|
|
|
+
|
|
now_time = int(time.time())
|
|
now_time = int(time.time())
|
|
distance = now_time - time_stamp
|
|
distance = now_time - time_stamp
|
|
|
|
+
|
|
if token != time_stamp or distance > 60000 or distance < -60000: # 为了全球化时间控制在一天内
|
|
if token != time_stamp or distance > 60000 or distance < -60000: # 为了全球化时间控制在一天内
|
|
return response.json(404)
|
|
return response.json(404)
|
|
|
|
|