Pārlūkot izejas kodu

修改时间戳

peng 2 gadi atpakaļ
vecāks
revīzija
31670a8ee1
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      Controller/DetectControllerV2.py

+ 1 - 3
Controller/DetectControllerV2.py

@@ -64,9 +64,7 @@ class NotificationV2View(View):
             return JsonResponse(status=200, data={'code': 404, 'msg': 'no region or is_st'})
         # 时间戳token校验
         if time_token:
-            time_stamp = int(n_time)
-            time_token = int(time_token)
-            if not CommonService.check_time_stamp_token(time_token, time_stamp):
+            if not CommonService.check_time_stamp_token(time_token, n_time):
                 return JsonResponse(status=200, data={'code': 13, 'msg': 'Timestamp token verification failed'})
         try:
             is_st = int(is_st)