🐛 修复 github #16 JWT无法设置过长失效时间

This commit is contained in:
卢春梦 2025-02-07 09:31:08 +08:00
parent e0e633286f
commit 0ac7fb6ab7

View File

@ -468,7 +468,7 @@ public class SecureUtil {
// 组装Token信息
TokenInfo tokenInfo = new TokenInfo();
tokenInfo.setToken(builder.compact());
tokenInfo.setExpire((int) expireMillis / 1000);
tokenInfo.setExpire((int) (expireMillis / 1000));
return tokenInfo;
}