开启aop
parent
76d0b5f0b7
commit
5b2284d2f5
|
|
@ -21,8 +21,8 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
//@Aspect
|
||||
//@Component
|
||||
@Aspect
|
||||
@Component
|
||||
@Slf4j
|
||||
public class SyncResponseEncryptAspect {
|
||||
|
||||
|
|
@ -47,9 +47,9 @@ public class SyncResponseEncryptAspect {
|
|||
}
|
||||
|
||||
long requestTime = Long.parseLong(timestamp);
|
||||
// if (Math.abs(System.currentTimeMillis() - requestTime) > TIMESTAMP_TOLERANCE) {
|
||||
// throw new SecurityException("请求已过期");
|
||||
// }
|
||||
if (Math.abs(System.currentTimeMillis() - requestTime) > TIMESTAMP_TOLERANCE) {
|
||||
throw new SecurityException("请求已过期");
|
||||
}
|
||||
|
||||
CorpInfoKeyDO keyDO = corpInfoKeyService.getByCorpinfoId(Long.parseLong(corpinfoId));
|
||||
if (keyDO == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue