From a2a9fa7563f01933dd49d6e2f85a4927e5259d5e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 18 三月 2025 16:42:39 +0800
Subject: [PATCH] 1
---
server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java b/server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java
index 18b2ecc..cf9c37f 100644
--- a/server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/system/impl/SystemLoginServiceImpl.java
@@ -51,8 +51,8 @@
private SystemDictDataBiz systemDictDataBiz;
- @Value("${captcha_check}")
- private Boolean captchaCheck;
+ @Value("${debug_model}")
+ private Boolean debugModel;
@Override
public String loginByPassword(LoginDTO dto, HttpServletRequest request) {
@@ -87,7 +87,7 @@
loginLog.setServerIp(Utils.Server.getIP());
if(needCheckCode){
// 鏍¢獙楠岃瘉鐮�
- if(captchaCheck) {
+ if(!debugModel) {
try {
captchaService.check(dto.getUuid(), dto.getCode());
} catch (Exception e) {
@@ -123,7 +123,7 @@
if (e.getCause() instanceof BusinessException) {
throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), e.getCause().getMessage());
}
- throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), "鎻愮ず瀵逛笉璧凤紝璐﹀彿鎴栧瘑鐮侀敊璇紒");
+ throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), "瀵逛笉璧凤紝璐﹀彿鎴栧瘑鐮侀敊璇紒");
}
}
--
Gitblit v1.9.3