Repository navigation
Release v2.5.2 - #90
Merged
Merged
Conversation
后端 /api/account/remove 自 v2.2 起就存在但一直没有界面入口。补上: - 账号卡 hover 出现 ✕(span 实现:卡片是 button,HTML 不允许嵌套), 点击弹确认框;点 ✕ 不触发选号 - 删除后刷新列表:删非当前号不动选中;删当前号切同栏剩余账号, 同栏空了切另一栏,删光则清空——renderHero 补空态分支,中间区域 重置回「未选择账号」占位,不再残留已删账号的头像/统计 - 删就是删:remove_account 直接删除账号 JSON,移入 _removed/ 的 备份逻辑整个去掉(用户决策:不留备份也不在文案里提) - docs/backend.md 接口说明同步更新 走查(--no-window + 临时数据根,真实鼠标路径):hover 显隐、取消 不误删、删非选中号、删当前号自动切栏、删光清空、磁盘文件确认消失
排障痛点:core 模块不能 import main(main→core 单向),后台链路出错 只有界面任务日志(内存态,重启即没),app.log 里什么都看不到。 - 新增 core/applog.py:app.log 的 core 侧写入端(时间戳、2MB 轮转、 单锁、写失败静默);main.log 落盘改走它,消灭双写端轮转竞争 - tasks.finish 收口:后台任务失败(账号同步/签到/抽卡/写 MAA/资源 更新)的摘要 + traceback 统一落 app.log - 森空岛 _http:HTTP 错误的完整响应体(≤4000 字)落 app.log——401 报障时 skland 返回的 code/message 是区分签名失效/cred 过期/风控的 唯一证据;界面任务日志维持 200 截断口径不变 - 抽卡 _http / 作业站 _http_json:HTTPError 响应体落 app.log 再抛 (原来裸抛,响应体哪都没有) - 凭证安全:只记 host+path(抽卡 query 带 authkey、森空岛带 uid), 错误响应体不含 cred/sign_token - err_body 收敛到 net.py 供三处共用;B27 断言 app.log 写入、401 全量 vs 任务日志 200、query 剥离、任务失败摘要+traceback
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.
No description provided.