 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
|
89be178a02
|
fix: DueReviewRequestOrders 扫描 NULL 列报错导致求评价调度失败
旧库升级来的订单 spec_name/spec_value/quantity/amount 等列可能为 NULL
(init schema 中这些 TEXT 列无 NOT NULL 约束)。DueReviewRequestOrders 此前
直接把这些列扫到 string 字段,遇到 NULL 报 "converting NULL to string is
unsupported",导致 scheduler 每 10 分钟的求评价扫描失败、启动时刷 WARN。
改为用 sql.NullString 扫描所有可空 TEXT 列(与 Orders.Get / ByCookie 一致),
NULL 归一为空串。补回归测试 TestDueReviewRequestOrdersHandlesNullSpecColumns。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 22:29:28 +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 |
|
 ChristandClaude Opus 4.8
|
3b4188c68c
|
feat: 优雅停机 + notify 通知触发接线
优雅停机:
- account.Manager 新增 StopAll(),先收集 cookieID 再逐个停,避免持锁等 goroutine
- cmd/server 在 srv.Run 返回后(正常+出错两路径)调 mgr.StopAll() + bm.Close()
- 修掉 automation.New 被构造两次的写法(先建 adapter→mgr→autoCenter→回填)
notify 接线(此前 notify 包写好但从未被调用,配置的渠道不会触发):
- automation.Center 加 Notifier 接口 + SetNotifier,executeRule 收尾按
成功(sent>0)/失败发通知,无匹配规则不刷屏
- main.go 注入 notify.Notifier 到 Center 和 Server
- manualShipOrders 的 full_delivery 与 status_only 两分支成功/失败都发通知
- 新增 3 个 automation 测试覆盖成功/失败/无规则通知路径
- 新增 account.TestManagerStopAll 覆盖 StopAll(-race 通过)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 21:40:34 +08:00 |
|
 ChristandClaude Opus 4.8
|
57f9090dd2
|
refactor: automation 中心落地 + 清理 delivery_rules/SystemMessage 死代码
把卡密自动发货从 engine.DeliveryService 收敛到统一的 automation.Center:
WS 事件/计划任务/手动触发统一为 Task,trigger_key 持久化防重,付款发货、
评价赠品、超时求评价共用一套规则+动作编排。新增 internal/automation 包、
db.AutomationRules repository、00007 迁移。
同步删除被取代的并行死系统:
- engine.DeliveryService + delivery_test.go(已无引用)
- db.DeliveryRules/DeliveryRule + 3 个 Match 方法(生产零调用)
- card_handlers 的 /delivery-rules CRUD(前端早已只走 automation-rules)
- engine.SystemMessage + extractSystemMessage(dispatch 不再单独路由 message["3"])
- store.DeliveryRules 字段、Cards.IncrementDeliveryTimes
- 00008 迁移 DROP delivery_rules/delivery_rule_variants + email_verifications/
captcha_codes/ai_item_cache/risk_control_logs + publish 批次 3 个死列
- isAPIPath 清理 ~15 个未挂载的前缀,stub_handlers.go 内联删除
- vite.config 删 /delivery-rules proxy
其它:orders.Upsert 注释改为诚实描述(version 列不参与并发控制);
dispatch.cleanupDedupLocked 用 sort.Slice 取代 O(n²) 选择排序;
删自定义 min 用内置;deliveryRuleItemOwned 改名 itemOwnedByUser。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 21:40:15 +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 |
|
Christ
|
074554a6de
|
Initial xianyu-go repository
|
2026-06-28 11:54:39 +08:00 |
|