厨房后场人员登录
This commit is contained in:
parent
3204f868fe
commit
e905875f68
|
|
@ -118,6 +118,9 @@ public class TokenService {
|
||||||
rspMap.put("expires_in", EXPIRETIME);
|
rspMap.put("expires_in", EXPIRETIME);
|
||||||
rspMap.put("isLogin", isLogin(String.valueOf(userId)));
|
rspMap.put("isLogin", isLogin(String.valueOf(userId)));
|
||||||
rspMap.put("deviceTypes", loginUser.getPermissions());
|
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();
|
long tokenTime = getTokenTime();
|
||||||
//对token进行存储
|
//对token进行存储
|
||||||
redisService.setCacheObject(LOGIN_STAFF_KEY + userId, token, tokenTime, TimeUnit.MINUTES);
|
redisService.setCacheObject(LOGIN_STAFF_KEY + userId, token, tokenTime, TimeUnit.MINUTES);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue