 ChristandClaude Opus 4.8
|
3f7954af84
|
feat: token 保活 + 通知系统 + 批量铺货 + 卡密批量 + 前端路由与样式对齐
后端
- token 刷新:session 过期立即触发密码登录兜底(不再空跑5次冷却);
FAIL_SYS_SESSION_EXPIRED 识别为凭证失效;token 刷新成功日志;
在线定时刷新 token 间隔从 1h 调整为 15min,持续续期 cookie
- QR 登录:修复自动验证成功状态被 EXPIRED 覆盖的竞态(前端拿不到 cookie)
- 通知系统:Notifier 加 NotifyAccountAlert/SendToChannel;engine Handler
加 OnAccountAlert(warn/critical/风控三触发点);handlerAdapter 接 notifier;
通知渠道测试发送端点 POST /notification-channels/{id}/test;
NotificationChannelRow 加 json tag 修复前端读不到字段
- 卡密批量:POST /cards/batch 批量创建卡密组;POST /cards/{id}/append-data
往 data 组充卡密;DB AppendBatchData
- 通知渠道启用切换修复(全量更新避免 type CHECK 约束报错)
前端
- history 路由(/app/ 前缀避开 API 冲突,刷新不丢位置,popstate 同步)
- 通知设置页:渠道管理 + 账号绑定 + 配置指南 + SMTP(从系统设置移入)
- 卡密批量导入弹窗(批量建组 + 单组充卡密)
- 商品卡片缩小约 2/3;Rules/Notifications 头部样式对齐标准页
- 初始化提示按 OS 区分命令(Windows/macOS)
- updateChannel 全量更新修复启用切换失败
文档
- docs/批量铺货使用文档.md(给铺货 agent 的资料包准备规格)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-07-06 12:27:37 +08:00 |
|
 ChristandClaude Opus 4.8
|
cf109ae6ce
|
fix(dashboard): 营收趋势图浮窗改为浅色风格,与 UI 一致
营收趋势分析的柱状图/折线图 Tooltip 此前写死深色背景
(#1F2937 / #1A1A1A),与 Ydisks 蓝色系浅色 UI 不符。
统一为白底 + 浅灰边框 + 软阴影,与分类饼图浮窗一致;
折线图 activeDot 中心由深色改为白色。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 22:36:00 +08:00 |
|
 ChristandClaude Opus 4.8
|
980de41b53
|
chore: 重构配套改动 + 包文档 + 构建产物清理
automation 重构期间的配套修改:
- browser:订单抓取/密码登录/二维码刷新/stealth 等适配新流程,删 search.go
- db:cookies/orders_ext/extras/sessions/users/password/repository 等调整
- xianyu:mtop client、protocol(sign/decrypt/msgpack/cookies)、qrlogin、ws、ua
- server:admin/analytics/auth/cookie/helpers/item/item_publish_batch handlers
- frontend:App/Dashboard/ItemList/Rules/Sidebar/api/types,删 Keywords/TestPage
- auth、notify、webui、go.mod 等
本次会话补充:
- cmd/server、cmd/init-admin 改为 // Package main 开头的标准包文档
- .gitignore 加 internal/webui/static/assets/(hash 化构建产物不入库)
- internal/webui/static/index.html 重新构建
全量 go build/vet/test + race + 前端 test/build 通过。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 21:41:03 +08:00 |
|
Christ
|
5546494577
|
Fix dashboard chart rendering
|
2026-06-28 13:40:46 +08:00 |
|
Christ
|
32993849db
|
Add publish template and card IDs
|
2026-06-28 13:31:44 +08:00 |
|
Christ
|
289ca19272
|
Improve account profile display
|
2026-06-28 12:43:33 +08:00 |
|
Christ
|
3e93b4bc18
|
Add account reauthorization flow
|
2026-06-28 12:09:34 +08:00 |
|
Christ
|
0a0a14687b
|
Move active frontend into xianyu-go
|
2026-06-28 12:01:39 +08:00 |
|