chenhj
8 天以前 c4174bbb103d95d6cd4714d3cc3070559444d70e
src/main/java/com/ruoyi/framework/security/service/TokenService.java
@@ -18,9 +18,9 @@
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.security.Keys;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
@@ -38,6 +38,7 @@
 * @author ruoyi
 */
@Component
@RequiredArgsConstructor
public class TokenService
{
    private static final Logger log = LoggerFactory.getLogger(TokenService.class);
@@ -60,8 +61,7 @@
    private static final Long MILLIS_MINUTE_TWENTY = 20 * 60 * 1000L;
    @Autowired
    private RedisCache redisCache;
    private final RedisCache redisCache;
    /**
     * 获取用户身份信息
@@ -149,8 +149,7 @@
        }
    }
    @Autowired
    private SysUserDeptMapper sysUserDeptMapper;
    private final SysUserDeptMapper sysUserDeptMapper;
    /**
     * 刷新令牌有效期