From d07815d3177b868e6117839d4129d0037765e510 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 10 Sep 2026 18:03:27 +0800 Subject: [PATCH] feat(wechat): update subscribe welcome plaza picks to curated pages Replace category links with Xinjiang travel, Plaza late-night food, and creative landing pages; sync missing E2E deps on 103 runtime. Co-authored-by: Cursor --- scripts/run-tang-subscribe-morning-e2e-103.mjs | 3 +++ wechat/handlers/sync-replies.mjs | 12 ++++++------ wechat/handlers/sync-replies.test.mjs | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/run-tang-subscribe-morning-e2e-103.mjs b/scripts/run-tang-subscribe-morning-e2e-103.mjs index ee73a54..e6212c5 100644 --- a/scripts/run-tang-subscribe-morning-e2e-103.mjs +++ b/scripts/run-tang-subscribe-morning-e2e-103.mjs @@ -261,7 +261,10 @@ await pool.end(); const filesToSync = [ ['schedule-time.mjs', `${REMOTE_ROOT}/schedule-time.mjs`], + ['schedule-intent.mjs', `${REMOTE_ROOT}/schedule-intent.mjs`], + ['schedule-utterance-normalize.mjs', `${REMOTE_ROOT}/schedule-utterance-normalize.mjs`], ['schedule-service.mjs', `${REMOTE_ROOT}/schedule-service.mjs`], + ['wechat-subscribe-morning-llm.mjs', `${REMOTE_ROOT}/wechat-subscribe-morning-llm.mjs`], ['wechat/morning-greeting-library.mjs', `${REMOTE_ROOT}/wechat/morning-greeting-library.mjs`], ['wechat/subscribe-morning-reminder.mjs', `${REMOTE_ROOT}/wechat/subscribe-morning-reminder.mjs`], ['wechat/handlers/sync-replies.mjs', `${REMOTE_ROOT}/wechat/handlers/sync-replies.mjs`], diff --git a/wechat/handlers/sync-replies.mjs b/wechat/handlers/sync-replies.mjs index 0f20560..5c28fbb 100644 --- a/wechat/handlers/sync-replies.mjs +++ b/wechat/handlers/sync-replies.mjs @@ -10,19 +10,19 @@ export const DEFAULT_PRODUCTION_BIND_URL = export const DEFAULT_PLAZA_HOME_URL = 'https://plaza.tkmind.cn/plaza'; -/** 关注欢迎语里推荐的 M发现精选入口(分类页稳定,便于长期维护)。 */ +/** 关注欢迎语里推荐的 M发现精选入口(示例页/广场作品,便于长期维护)。 */ export const DEFAULT_SUBSCRIBE_PLAZA_PICKS = Object.freeze([ { label: '✈️ 旅行攻略 · 路线/交通/美食预算一站看', - url: 'https://plaza.tkmind.cn/plaza/?category=travel', + url: 'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/xinjiang-travel.html', }, { - label: '🍜 生活探店 · 深夜食堂、城市散步地图', - url: 'https://plaza.tkmind.cn/plaza/?category=lifestyle', + label: '🍜 深夜食堂 · 城市探店、散步地图', + url: 'https://plaza.tkmind.cn/plaza/p/a2767a6d-e314-49fe-885e-c5baa978e6fc', }, { - label: '🎨 创意 showcase · 活动页、海报、品牌视觉', - url: 'https://plaza.tkmind.cn/plaza/?category=creative', + label: '🎨 创意海报页 · 活动页、品牌视觉', + url: 'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/tkmind-zhiqu-landing.html', }, ]); diff --git a/wechat/handlers/sync-replies.test.mjs b/wechat/handlers/sync-replies.test.mjs index e820351..f0090e5 100644 --- a/wechat/handlers/sync-replies.test.mjs +++ b/wechat/handlers/sync-replies.test.mjs @@ -25,7 +25,7 @@ test('buildSubscribeWelcomeText uses clickable anchors instead of raw urls', () assert.match(text, /生成精美网页并给链接/); assert.match(text, /🎯 M发现 · 精选作品广场/); assert.match(text, /旅行攻略/); - assert.match(text, /生活探店/); + assert.match(text, /深夜食堂/); assert.match( text, new RegExp(`进入 M发现,逛热门作品`),