feat: 微信内浏览器统一使用 URL Scheme 跳转小程序
- 移动端(包括微信内浏览器)统一使用明文 URL Scheme - 简化跳转逻辑,无需 JS-SDK 签名配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -115,11 +115,9 @@ export const useWechatEnvironment = () => {
|
|||||||
const wechatVersion = getWeChatVersion();
|
const wechatVersion = getWeChatVersion();
|
||||||
const openTagSupported = isOpenTagSupported();
|
const openTagSupported = isOpenTagSupported();
|
||||||
|
|
||||||
// 确定跳转方式
|
// 确定跳转方式(移动端统一使用 URL Scheme,包括微信内浏览器)
|
||||||
let launchMethod;
|
let launchMethod;
|
||||||
if (isWechat && openTagSupported) {
|
if (isMobile) {
|
||||||
launchMethod = LAUNCH_METHOD.OPEN_TAG;
|
|
||||||
} else if (isMobile) {
|
|
||||||
launchMethod = LAUNCH_METHOD.URL_SCHEME;
|
launchMethod = LAUNCH_METHOD.URL_SCHEME;
|
||||||
} else {
|
} else {
|
||||||
launchMethod = LAUNCH_METHOD.QR_CODE;
|
launchMethod = LAUNCH_METHOD.QR_CODE;
|
||||||
|
|||||||
Reference in New Issue
Block a user