From 77756eb08dd6db77950eb76ac51c98ef39379f96 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 24 二月 2022 13:09:37 +0800 Subject: [PATCH] !146 无符号算数验证码两个随机数生成相同概率较高问题 Merge pull request !146 from tmjAccount/dev --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/SaTokenConfig.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SaTokenConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SaTokenConfig.java index 0459818..54f373b 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SaTokenConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SaTokenConfig.java @@ -5,8 +5,8 @@ import cn.dev33.satoken.jwt.StpLogicJwtForStyle; import cn.dev33.satoken.router.SaRouter; import cn.dev33.satoken.stp.StpLogic; +import cn.hutool.core.util.ObjectUtil; import com.ruoyi.common.helper.LoginHelper; -import com.ruoyi.common.utils.StringUtils; import com.ruoyi.framework.config.properties.SecurityProperties; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -45,7 +45,7 @@ .notMatch(securityProperties.getExcludes()) .check(() -> { Long userId = LoginHelper.getUserId(); - if (StringUtils.isNotNull(userId)) { + if (ObjectUtil.isNotNull(userId)) { // 鏈夋晥鐜囧奖鍝� 鐢ㄤ簬涓存椂娴嬭瘯 // if (log.isDebugEnabled()) { // log.debug("鍓╀綑鏈夋晥鏃堕棿: {}", StpUtil.getTokenTimeout()); -- Gitblit v1.9.3