| | |
| | | package com.project.framework.web.service; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.project.common.core.domain.entity.SysUser; |
| | | import com.project.system.service.ISysUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import com.project.common.constant.CacheConstants; |
| | | import com.project.common.constant.Constants; |
| | | import com.project.common.core.domain.entity.SysUser; |
| | | import com.project.common.core.domain.model.LoginUser; |
| | | import com.project.common.core.redis.RedisCache; |
| | | import com.project.common.utils.ServletUtils; |
| | |
| | | import com.project.common.utils.ip.AddressUtils; |
| | | import com.project.common.utils.ip.IpUtils; |
| | | import com.project.common.utils.uuid.IdUtils; |
| | | import com.project.system.service.ISysUserService; |
| | | import eu.bitwalker.useragentutils.UserAgent; |
| | | import io.jsonwebtoken.Claims; |
| | | import io.jsonwebtoken.Jwts; |
| | | import io.jsonwebtoken.SignatureAlgorithm; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | /** |
| | | * token验证处理 |
| | |
| | | |
| | | protected static final long MILLIS_MINUTE = 60 * MILLIS_SECOND; |
| | | |
| | | private static final Long MILLIS_MINUTE_TEN = 12 * 60 * 60 * 1000L; |
| | | private static final Long MILLIS_MINUTE_TEN = 2 * 60 * 60 * 1000L; |
| | | |
| | | @Autowired |
| | | private RedisCache redisCache; |