Skip to content

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

fix(editor): 修复时间线编辑器生成 week_map 数字 key 带引号导致调度失败

sansana5ede43a6666
diff --git a/docs/assets/script.js b/docs/assets/script.js
index a4a574029b..6e62e2ec44 100644
--- a/docs/assets/script.js
+++ b/docs/assets/script.js
@@ -5059,7 +5059,11 @@ function buildEmptyPresetBlock(key, name, desc) {
*/
function buildPresetYamlBlock(key, cfg) {
const obj = { [key]: cfg };
- const dumped = jsyaml.dump(obj, { indent: 2, lineWidth: -1, quotingType: '"', forceQuotes: false });
+ let dumped = jsyaml.dump(obj, { indent: 2, lineWidth: -1, quotingType: '"', forceQuotes: false });
+ // js-yaml 会把 week_map 的数字 key 序列化成带引号的字符串("1".."7"),
+ // 而后端 scheduler 用整数 isoweekday() 读取 week_map,字符串 key 会导致启动校验失败、无法运行。
+ // 这里去掉纯数字 key 的引号,与手写模板(1: all_day)及后端期望的整数 key 保持一致。
+ dumped = dumped.replace(/^(\s*)"(\d+)":/gm, '$1$2:');
return dumped.split('\n').map(l => l ? ' ' + l : l).join('\n');
}