fix(sso): 修复StringUtils.isBlank编译错误

改用cn.hutool.core.util.StrUtil.isBlank()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
liulujian 2026-04-15 16:07:14 +08:00
parent 5028ec4b8f
commit 1cbffca35b

View File

@ -4,6 +4,7 @@ import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.ICaptcha; import cn.hutool.captcha.ICaptcha;
import cn.hutool.captcha.generator.RandomGenerator; import cn.hutool.captcha.generator.RandomGenerator;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import com.css.ggzc.framework.common.pojo.CommonResult; import com.css.ggzc.framework.common.pojo.CommonResult;
import com.css.txw.sso.properties.SsoProperties; import com.css.txw.sso.properties.SsoProperties;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -91,7 +92,7 @@ public class VerifyServiceImpl implements VerifyService {
if (!this.ssoProperties.isLoginCaptcha()) { if (!this.ssoProperties.isLoginCaptcha()) {
return true; return true;
} }
if (org.springframework.util.StringUtils.isBlank(uuid) || org.springframework.util.StringUtils.isBlank(code)) { if (StrUtil.isBlank(uuid) || StrUtil.isBlank(code)) {
return false; return false;
} }
String key = formatCaptchaKey(uuid); String key = formatCaptchaKey(uuid);