mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 22:34:18 +08:00
把监控推送从单一总开关 webhook_enabled(bool)升级为渠道数组 webhook_channels(list),飞书与企业微信各自独立勾选,做到「勾哪个 推哪个」。沿用项目已有的 review_push_channels 渠道数组模式。 后端: - RuleModel 新增 webhook_channels 字段;normalize() 兼容老规则, webhook_enabled=True 自动迁移为 ['feishu','wecom'] - _maybe_send_webhook 按 channels 判断:'feishu' in channels 才推 飞书,'wecom' in channels 才推企业微信 - 新增偏好 webhook_default_channels + PUT 接口;老 webhook_enabled_default 保留兼容 前端: - RuleEditor 飞书/企业微信勾选各自绑数组 includes/toggle - 设置页推送通知卡片飞书/企业微信默认勾选独立 - 连板梯队封单弹窗「飞书」单胶囊改为飞书+企业微信双胶囊 - api.ts 类型 + updateWebhookDefaultChannels