mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 16:20:43 +08:00
feat 优化账号登录token
This commit is contained in:
@@ -438,7 +438,7 @@ public class LoginServiceImpl implements ILoginService {
|
||||
*/
|
||||
private LoginTokenVo __loginToken(Integer userId, String mobile, Integer isNew, Integer terminal) {
|
||||
// 实现账号登录
|
||||
StpUtil.login(userId, String.valueOf(terminal));
|
||||
StpUtil.login(userId, String.valueOf(terminal + ToolUtils.makeToken()));
|
||||
|
||||
// 更新登录信息
|
||||
User user = new User();
|
||||
|
||||
Reference in New Issue
Block a user