feat(web): 虎牙账号管理界面优化 — 登录渠道区分 (Web 旧版 / App 协议 / 短信)

后端:
- HuyaAccount 新增 login_channel 字段 + 迁移 20260829_0030 (启动自动升级)
- 5 个登录端点成功后记录渠道: web/app 批量与单账号 + 短信
- HuyaAccountOut 输出 login_channel
前端:
- 账号表新增『登录渠道』列 (App 协议/Web 旧版/短信/仅导入)
- 工具栏登录按钮分组: App 协议登录(primary 推荐) 与 Web 登录(旧版, Tooltip 说明)
- 行内操作新增单账号 App/Web 登录按钮 (复用批量端点传单 id)
- tsc + vite build 通过
This commit is contained in:
yml2213
2026-08-29 13:13:57 +08:00
parent 9653dbe3ba
commit d6ab4d8699
6 changed files with 153 additions and 24 deletions
+2
View File
@@ -451,6 +451,8 @@ export interface HuyaAccountItem {
tag: string;
remark: string;
status: string;
/** 上次成功登录渠道: web=旧版Web协议 / app=App协议(推荐) / sms=短信; 空=仅导入 */
login_channel?: string;
points: number | null;
game_name: string;
game_channel: string;