fix(admin): 修复用户与权限管理模块最后登录时间无法显示的问题 - #41
Merged
Merged
Conversation
Heyflyingpig
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复最后登录时间并增加失败提示
实现变更
users.last_login_at;时间以 UTC 保存,管理员页面继续转换为上海时间显示。POST /api/login更新该字段;密码错误、Session 恢复、管理员切换到聊天模式均不更新。last_login_record_failed警告码。接口与兼容性
POST /api/login仅在记录失败时增加可选warning_code,其余响应字段保持不变。last_login_at、用户列表接口和Asia/Shanghai格式化逻辑直接复用。fixes #36