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

建议增加不同设备可以设置不同的登陆时长的限制 #695

Open
ShaoboLiu1992 opened this issue Oct 25, 2024 · 1 comment
Open

Comments

@ShaoboLiu1992
Copy link

建议增加的新功能:

建议增加不同设备可以设置不同的登陆时长的限制

应用场景阐述:

比如小程序我可以设置一个月不掉线,PC端设置8小时

< 备注:请尽量详细描述功能应用场景 >

@click33
Copy link
Collaborator

click33 commented Nov 10, 2024

// 指定token有效期(单位: 秒),如下所示token七天有效
StpUtil.login(10001, new SaLoginModel().setTimeout(60 * 60 * 24 * 7));

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

2 participants