登录和刷新token优化

This commit is contained in:
2025-08-21 09:14:33 +08:00
parent 8277e54662
commit 66d039b507
25 changed files with 854 additions and 69 deletions

View File

@@ -56,6 +56,7 @@ public class UserService implements UserDetailsService {
// 2. 检查手机号是否已注册
if (userRepository.existsByPhone(phone)) {
User user = userRepository.findByPhone(phone).get();
user.setUserId(deviceId);
user.setNewUser(false);
return user;
} else {