加点注释
This commit is contained in:
@@ -107,6 +107,7 @@ public class UserServiceImpl implements UserService {
|
|||||||
Long userId = user.getUserId();
|
Long userId = user.getUserId();
|
||||||
String deviceId = userLoginDTO.getDeviceId();
|
String deviceId = userLoginDTO.getDeviceId();
|
||||||
|
|
||||||
|
// 缓存登录token
|
||||||
String tokenKey = "login:token:" + userId+ ":" + deviceId;
|
String tokenKey = "login:token:" + userId+ ":" + deviceId;
|
||||||
redisTemplate.opsForValue().set(
|
redisTemplate.opsForValue().set(
|
||||||
tokenKey,
|
tokenKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user