开启aop

main
zhangyue 2026-04-24 13:46:30 +08:00
parent 76d0b5f0b7
commit 5b2284d2f5
1 changed files with 5 additions and 5 deletions

View File

@ -21,8 +21,8 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
//@Aspect @Aspect
//@Component @Component
@Slf4j @Slf4j
public class SyncResponseEncryptAspect { public class SyncResponseEncryptAspect {
@ -47,9 +47,9 @@ public class SyncResponseEncryptAspect {
} }
long requestTime = Long.parseLong(timestamp); long requestTime = Long.parseLong(timestamp);
// if (Math.abs(System.currentTimeMillis() - requestTime) > TIMESTAMP_TOLERANCE) { if (Math.abs(System.currentTimeMillis() - requestTime) > TIMESTAMP_TOLERANCE) {
// throw new SecurityException("请求已过期"); throw new SecurityException("请求已过期");
// } }
CorpInfoKeyDO keyDO = corpInfoKeyService.getByCorpinfoId(Long.parseLong(corpinfoId)); CorpInfoKeyDO keyDO = corpInfoKeyService.getByCorpinfoId(Long.parseLong(corpinfoId));
if (keyDO == null) { if (keyDO == null) {