Skip to content

fix(定时任务): 修复通知渠道过滤缺陷,升级渠道选择器显示体验#1191

Open
gongzhi-netease wants to merge 1 commit intonetease-youdao:mainfrom
gongzhi-netease:fix/scheduled-task-channel-filter
Open

fix(定时任务): 修复通知渠道过滤缺陷,升级渠道选择器显示体验#1191
gongzhi-netease wants to merge 1 commit intonetease-youdao:mainfrom
gongzhi-netease:fix/scheduled-task-channel-filter

Conversation

@gongzhi-netease
Copy link
Copy Markdown

@gongzhi-netease gongzhi-netease commented Apr 1, 2026

问题背景

定时任务通知渠道选择器存在多个缺陷:

  1. POPO 和企业微信渠道不显示:用户已在 IM 设置中启用,但定时任务中无法选择
  2. 微信被错误标记为"暂不支持":实际插件已实现消息投递能力,属于遗留防御性代码
  3. 渠道显示原始编码:下拉框和任务详情均显示技术编码(如 moltbot-popofeishu),用户无法识别

改动内容

修复渠道过滤机制

  • 移除 5 个硬编码的 channel → config key if-else 映射
  • 改为通过 PlatformRegistry.platformOfChannel() 自动解析
  • 架构价值: 新增 IM 平台只需更新 PlatformRegistry,定时任务自动适配,无需额外改动

升级通知渠道选择器

  • 将原生 <select> 升级为自定义下拉组件
  • 每个渠道选项显示平台 Logo + i18n 中文名称
  • 修正"暂不支持"判定:移除 openclaw-weixin,仅保留真正不支持的 qqbotnetease-bee

问题截图

77FE50752AA1
832b61905191

修复截图

CCF196615F89
21904B0014A7

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

This pull request has been inactive for 30 days. It will be automatically closed in 14 days unless there is new activity.

If you're still working on this, please leave a comment or push new commits to keep it open. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant