开启aop
parent
76d0b5f0b7
commit
5b2284d2f5
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue