From 98baa371eea13977740cc4036d0d833273f01111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 16 Mar 2026 11:25:50 +0800 Subject: [PATCH] 1 --- project.config.json | 2 +- src/game_pages/detail/components/SharePopup/index.tsx | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/project.config.json b/project.config.json index 839e034..15d90c1 100644 --- a/project.config.json +++ b/project.config.json @@ -2,7 +2,7 @@ "miniprogramRoot": "dist/", "projectname": "playBallTogether", "description": "playBallTogether", - "appid": "wx915ecf6c01bea4ec", + "appid": "wx815b533167eb7b53", "setting": { "urlCheck": true, "es6": true, diff --git a/src/game_pages/detail/components/SharePopup/index.tsx b/src/game_pages/detail/components/SharePopup/index.tsx index 79abf66..663d587 100644 --- a/src/game_pages/detail/components/SharePopup/index.tsx +++ b/src/game_pages/detail/components/SharePopup/index.tsx @@ -40,14 +40,16 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => { } const publishFlag = from === "publish"; + // const posterRef = useRef(); const { max_participants, participant_count } = detail || {}; - + // useEffect(() => { // if (id) { // changeMessageType(); // } // }, [id]); + async function changeMessageType() { try { @@ -61,6 +63,13 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => { withShareTicket: false, // 是否需要返回 shareTicket isUpdatableMessage: true, // 是否是动态消息(需要服务端配置过模版) activityId: res.data.activity_id, // 动态消息的活动 id + templateInfo: { + parameterList: [ + { name: 'member_count', value: (participant_count ?? 0).toString() }, + { name: 'room_limit', value: (max_participants ?? 0).toString() }, + ], + templateId: '666F374D69D16C932E45D7E7D9F10CEF6177F5F5' + } }); } } catch (e) {