fix(auth): 登录时间写回保留并发停用状态 (#685)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Catlaxy AIandClaude Opus 5.5 authored and GitHub committed 2026-10-06 09:23:42 +08:00
1 parent ad766bb643
commit aa1ba12a0b
4 files changed
+135 -2

No files matched your search

+1 -1
View File
@@ -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 {