This commit is contained in:
2023-05-25 15:34:12 +08:00
parent b61183b0a9
commit 150b953ef9

View File

@ -31,7 +31,7 @@ public class TokenUtil {
public static String generateToken(String username) {
DateTime now = DateTime.now();
Integer expireTime = 1;
int expireTime = 1;
if (redisService.hasKey(SecurityConstant.TOKEN_EXPIRE_TIME_KEY)) {
expireTime = Integer.parseInt(redisService.get(SecurityConstant.TOKEN_EXPIRE_TIME_KEY).toString());
}