|
@@ -455,7 +455,7 @@ class CommonService:
|
|
|
return False
|
|
|
|
|
|
@staticmethod
|
|
|
- def check_time_stamp_token_without_distance(time_stamp, time_stamp_token):
|
|
|
+ def check_time_stamp_token_without_distance(time_stamp_token, time_stamp):
|
|
|
"""
|
|
|
用于没有RTC设备的时间戳token校验
|
|
|
@param time_stamp: 时间戳
|
|
@@ -463,7 +463,7 @@ class CommonService:
|
|
|
@return: boolean True/False
|
|
|
"""
|
|
|
|
|
|
- if not all([time_stamp, time_stamp_token]):
|
|
|
+ if not all([time_stamp_token, time_stamp]):
|
|
|
return False
|
|
|
try:
|
|
|
token = CommonService.decode_data(time_stamp_token)
|