fix(计划): 定时触发补 app context;账号状态加检测时间与历史记录

- _fire 内调用 run_plan(修复 18:00 Working outside application context,无运行记录)
- device_account 新增 status_checked_at;新表 account_status_log(schema v23)
- 每次检测/手改留痕;资产表显示检测时间 + 「记录」弹窗
- API /api/af/account_status_logs;备份标签/文档/测试同步
This commit is contained in:
2026-10-22 07:59:18 +08:00
parent 7bc19e9eaa
commit 122e239e45
13 changed files with 222 additions and 18 deletions
+1
View File
@@ -1098,6 +1098,7 @@ multipart 上传 `.zip` 或 `.db`(字段 `file`)→ 校验并暂存:
| GET | `/api/af/item/<id>/publish_logs` | 素材的发布记录 |
| GET | `/api/af/devices` · POST `/api/af/probe` | 设备卡片 / 实时探测每台登着哪个号 |
| GET | `/api/af/roster` | **账号库**(名字 ↔ 哪台手机,每行带 `serial/pooled/online`) |
| GET | `/api/af/account_status_logs?name=<昵称>` | **账号状态检测记录**(时间/状态/设备/来源,最近 100 条) |
| POST | `/api/af/roster/import` · `/resolve` | 粘贴导入(**按抖音号认同一行**,永不删)/ 只算名字→设备 |
| DELETE | `/api/af/roster/<row_id>` | 删一行账号库(只有这里会删) |
| GET | `/api/account_pool/accounts` | **账号池对外只读 API**(独立令牌,给其他应用;见下) |