فهرست منبع

新增无登录获取主用户信息2

chenshibin 4 سال پیش
والد
کامیت
4f044e974b
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      Controller/EquipmentManagerV3.py

+ 5 - 0
Controller/EquipmentManagerV3.py

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