Files
Ydisks-Xianyu-Helper/cmd
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
..
2026-06-28 11:54:39 +08:00
2026-06-28 11:54:39 +08:00