From 1cbffca35b38afa10ffbc2553c771f236b35564f Mon Sep 17 00:00:00 2001 From: liulujian Date: Wed, 15 Apr 2026 16:07:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(sso):=20=E4=BF=AE=E5=A4=8DStringUtils.isBla?= =?UTF-8?q?nk=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改用cn.hutool.core.util.StrUtil.isBlank() Co-Authored-By: Claude Opus 4.6 --- .../java/com/css/txw/sso/service/verify/VerifyServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/txw-sso/txw-sso-service-biz/src/main/java/com/css/txw/sso/service/verify/VerifyServiceImpl.java b/txw-sso/txw-sso-service-biz/src/main/java/com/css/txw/sso/service/verify/VerifyServiceImpl.java index f3a68d9..e65ff82 100644 --- a/txw-sso/txw-sso-service-biz/src/main/java/com/css/txw/sso/service/verify/VerifyServiceImpl.java +++ b/txw-sso/txw-sso-service-biz/src/main/java/com/css/txw/sso/service/verify/VerifyServiceImpl.java @@ -4,6 +4,7 @@ import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.ICaptcha; import cn.hutool.captcha.generator.RandomGenerator; import cn.hutool.core.util.IdUtil; +import cn.hutool.core.util.StrUtil; import com.css.ggzc.framework.common.pojo.CommonResult; import com.css.txw.sso.properties.SsoProperties; import org.springframework.context.annotation.Bean; @@ -91,7 +92,7 @@ public class VerifyServiceImpl implements VerifyService { if (!this.ssoProperties.isLoginCaptcha()) { return true; } - if (org.springframework.util.StringUtils.isBlank(uuid) || org.springframework.util.StringUtils.isBlank(code)) { + if (StrUtil.isBlank(uuid) || StrUtil.isBlank(code)) { return false; } String key = formatCaptchaKey(uuid);