fix(auth): 登录时间写回保留并发停用状态 (#685)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad766bb643
commit
aa1ba12a0b
4 files changed
+135
-2
No files matched your search
@@ -281,7 +281,7 @@ func (s *Service) Login(req LoginRequest) (*AuthSessionResult, error) {
|
||||
now := time.Now()
|
||||
user.LastLoginAt = &now
|
||||
user.UpdatedAt = now
|
||||
if err := s.repo.Save(user); err != nil {
|
||||
if err := s.repo.UpdateUserLoginTime(user.ID, now); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := s.host.EnsureSignupBonus(user.ID); err != nil {
|
||||
|
||||
Reference in new issue
Block a user