hookehuyr

fix(ai): 修正元宝AI跳转参数传递方式

- 将参数从 extraData 改为 URL 查询字符串拼接
- path 添加查询参数: ?showAuthDirectly=1&agentId=sOySYp2PV9qa
- 确保正确打开定制版元宝AI小程序

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
...@@ -85,14 +85,10 @@ const handleTabClick = (item) => { ...@@ -85,14 +85,10 @@ const handleTabClick = (item) => {
85 85
86 Taro.reLaunch({ url: item.path }) 86 Taro.reLaunch({ url: item.path })
87 } else if (item.key === 'ai') { 87 } else if (item.key === 'ai') {
88 - // 跳转到腾讯元宝AI小程序 88 + // 跳转到腾讯元宝AI小程序(定制版)
89 Taro.navigateToMiniProgram({ 89 Taro.navigateToMiniProgram({
90 appId: 'wxd5201eb08d2fa15c', // 腾讯元宝小程序 AppID 90 appId: 'wxd5201eb08d2fa15c', // 腾讯元宝小程序 AppID
91 - path: 'pages/agentChat/index', // 元宝小程序 AI 聊天页面路径 91 + path: 'pages/agentChat/index?showAuthDirectly=1&agentId=sOySYp2PV9qa', // 拼接查询参数到路径中
92 - extraData: {
93 - showAuthDirectly: 1,
94 - agentId: 'sOySYp2PV9qa'
95 - },
96 envVersion: 'release', // 打开正式版 92 envVersion: 'release', // 打开正式版
97 success: (res) => { 93 success: (res) => {
98 console.log('跳转元宝小程序成功', res) 94 console.log('跳转元宝小程序成功', res)
......