From 82811d7b89e7d3699c2299f35516c5f0ef605f00 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 18 Sep 2026 09:46:28 +0800 Subject: [PATCH] chore(news-morning): lock template reference to daily-news-0918 Finalize the approved 2026-09-18 refined briefing as the production layout and SEO reference for future auto-generation. Co-authored-by: Cursor --- wechat-news-morning-draft.mjs | 4 ++-- wechat-news-morning-draft.test.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wechat-news-morning-draft.mjs b/wechat-news-morning-draft.mjs index 8c5eb9a..a2c580f 100644 --- a/wechat-news-morning-draft.mjs +++ b/wechat-news-morning-draft.mjs @@ -31,7 +31,7 @@ const DEFAULT_MATERIAL_ADD_URL = 'https://api.weixin.qq.com/cgi-bin/material/add const DEFAULT_UPLOAD_IMG_URL = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg'; const MAX_THUMB_BYTES = 64 * 1024; export const NEWS_MORNING_TEMPLATE_REFERENCE_URL = - 'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/daily-news-0915.html'; + 'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/daily-news-0918.html'; export const NEWS_MORNING_TEMPLATE_VERSION = '2026-09-18-refined'; @@ -45,7 +45,7 @@ export const NEWS_MORNING_SEO_SPEC = [ '6. footer 注明整理时间与主要来源域名,便于 GEO 引用。', ].join('\n'); -/** 生产 daily-news-0915 版式:div.section + 扩展全球栏目。 */ +/** 生产 daily-news-0918 定稿版式:div.section + 全渠道栏目 + SEO。 */ export const NEWS_MORNING_TEMPLATE_0915_SPEC = [ '生成「每日新闻早报」静态 HTML 页面(daily-news-MMDD),版式必须与生产参照页完全一致(仅 HTML/CSS 结构,禁止复制其正文):', `参照页:${NEWS_MORNING_TEMPLATE_REFERENCE_URL}`, diff --git a/wechat-news-morning-draft.test.mjs b/wechat-news-morning-draft.test.mjs index c3547a9..fc35e3e 100644 --- a/wechat-news-morning-draft.test.mjs +++ b/wechat-news-morning-draft.test.mjs @@ -164,7 +164,7 @@ test('news morning draft service persists config and records failed push', async const preview = await service.preview({ now: Date.parse('2026-09-10T08:00:00+08:00') }); assert.equal(preview.page.slug, 'daily-news-0910'); - assert.match(preview.template.spec, /0915|global|Google/u); + assert.match(preview.template.spec, /0918|refined|Google/u); assert.match(preview.template.spec, /禁止复制|禁止用历史 daily-news/u); await assert.rejects( @@ -218,7 +218,7 @@ test('buildNewsMorningAutoGenerationTask requires fresh daily search', () => { assert.match(task.taskSpec, /全球高校/u); assert.match(task.taskSpec, /全球股市/u); assert.match(task.taskSpec, /2026-09-15/u); - assert.match(task.taskSpec, /daily-news-0915\.html/u); + assert.match(task.taskSpec, /daily-news-0918\.html/u); assert.doesNotMatch(task.taskSpec, /可以用昨日正文/u); const withBrief = wechatNewsMorningDraftInternals.buildNewsMorningAutoGenerationTask(