厨房后场人员登录

This commit is contained in:
sxu 2025-07-01 09:57:31 +08:00
parent 3204f868fe
commit e905875f68
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ public class TokenService {
rspMap.put("expires_in", EXPIRETIME);
rspMap.put("isLogin", isLogin(String.valueOf(userId)));
rspMap.put("deviceTypes", loginUser.getPermissions());
rspMap.put("staffId", loginUser.getUserid());
rspMap.put("staffName", loginUser.getSysUser().getNickName());
rspMap.put("mobile", loginUser.getSysUser().getPhonenumber());
long tokenTime = getTokenTime();
//对token进行存储
redisService.setCacheObject(LOGIN_STAFF_KEY + userId, token, tokenTime, TimeUnit.MINUTES);