|
@@ -63,7 +63,7 @@ public class CheckSignatureAspect {
|
|
if(StrUtil.isEmpty(timestamp)){
|
|
if(StrUtil.isEmpty(timestamp)){
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_3003.code(), "timestamp cannot be empty");
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_3003.code(), "timestamp cannot be empty");
|
|
}
|
|
}
|
|
- //时间戳有效时间是10秒
|
|
|
|
|
|
+ //时间戳有效时间是15分钟
|
|
Instant now = Instant.now();
|
|
Instant now = Instant.now();
|
|
long epochSecond = now.getEpochSecond();
|
|
long epochSecond = now.getEpochSecond();
|
|
long expiraSecond = Long.valueOf(timestamp) + 15 * 60L;
|
|
long expiraSecond = Long.valueOf(timestamp) + 15 * 60L;
|