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