From 2449619f43e8df9d224f9bfdcc20b63f07aeb700 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 15 Dec 2025 10:06:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=AE=E4=BF=A1=E5=86=85=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8=20URL=20?= =?UTF-8?q?Scheme=20=E8=B7=B3=E8=BD=AC=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移动端(包括微信内浏览器)统一使用明文 URL Scheme - 简化跳转逻辑,无需 JS-SDK 签名配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../MiniProgramLauncher/hooks/useWechatEnvironment.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/MiniProgramLauncher/hooks/useWechatEnvironment.js b/src/components/MiniProgramLauncher/hooks/useWechatEnvironment.js index a5316455..c3b19773 100644 --- a/src/components/MiniProgramLauncher/hooks/useWechatEnvironment.js +++ b/src/components/MiniProgramLauncher/hooks/useWechatEnvironment.js @@ -115,11 +115,9 @@ export const useWechatEnvironment = () => { const wechatVersion = getWeChatVersion(); const openTagSupported = isOpenTagSupported(); - // 确定跳转方式 + // 确定跳转方式(移动端统一使用 URL Scheme,包括微信内浏览器) let launchMethod; - if (isWechat && openTagSupported) { - launchMethod = LAUNCH_METHOD.OPEN_TAG; - } else if (isMobile) { + if (isMobile) { launchMethod = LAUNCH_METHOD.URL_SCHEME; } else { launchMethod = LAUNCH_METHOD.QR_CODE;