Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录态自动延期(支持自定义登录态有效期窗口,默认24H,当登录态有效期窗口过半时,自动顺延一个周期)实现是否有误 #64

Open
yinliyun opened this issue Mar 9, 2021 · 0 comments

Comments

@yinliyun
Copy link

yinliyun commented Mar 9, 2021

// After the expiration time has passed half, Auto refresh if ((System.currentTimeMillis() - xxlUser.getExpireFreshTime()) > xxlUser.getExpireMinute()/2) { xxlUser.setExpireFreshTime(System.currentTimeMillis()); SsoLoginStore.put(storeKey, xxlUser); }

System.currentTimeMillis() - xxlUser.getExpireFreshTime()是毫秒级别
xxlUser.getExpireMinute()/2是分钟级别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant