From cd6e936dfae90ac71f8e2df7bde70c5dd7936de0 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 21 Sep 2026 09:54:05 +0800
Subject: [PATCH] refactor(gate): 重命名自定义止损相关字段以提高语义清晰度

---
 src/main/java/com/xcong/excoin/common/system/service/impl/CommonServiceImpl.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 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 842de88..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
@@ -26,12 +26,15 @@
     @Override
     public boolean verifyCode(String account, String code) {
         String cacheCode = redisUtils.getString(AppContants.VERIFY_CODE_PREFIX + account);
-        log.info("---->{}", cacheCode);
         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