From 5b2284d2f55d3e23b3d106c4edde621d5fa6f657 Mon Sep 17 00:00:00 2001 From: zhangyue Date: Fri, 24 Apr 2026 13:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFaop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/info/aspect/SyncResponseEncryptAspect.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java b/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java index 887f2e1b..a9dfca9a 100644 --- a/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java +++ b/web-adapter/src/main/java/com/zcloud/basic/info/aspect/SyncResponseEncryptAspect.java @@ -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) {