From e37c7f6ac047e43efd1b127f571d91cd75f1e72c Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 08 Oct 2026 10:37:07 +0800
Subject: [PATCH] fix(gate-api): 修复网格交易重置策略中的竞态条件问题
---
src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java b/src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java
index 533aab9..265b41a 100644
--- a/src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java
@@ -29,7 +29,12 @@
if (StrUtil.isBlank(cacheCode)) {
return false;
}
- return code.equals(cacheCode);
+ if (code.equals(cacheCode)) {
+ redisUtils.del(AppContants.VERIFY_CODE_PREFIX + account);
+ return true;
+ } else {
+ return false;
+ }
}
@Override
--
Gitblit v1.9.1