1***@qq.com
1***@qq.com
  • 发布:2024-11-22 19:48
  • 更新:2025-04-14 11:27
  • 阅读:1915

真机运行跳转正常,但是“打包和上线”都失败报错bad_param

分类:uni-app

uniapp开发的app 跳转微信小程序 我在manifest.json分享权限配置的appid 是微信开放平台移动应用的appid
使用的是5+launchMiniProgram ID为小程序的原始id

真机运行跳转正常,但是“打包和上线”都失败报错bad_param
下面是代码块

const originId = 'gh_1ae' // 微信小程序原始id
const path = PalyUrl.value // 小程序页面路径
const envVersion = import.meta.env.VITE_APP_VERSION // 0-正式版; 1-测试版; 2-体验版
const webUrl = 'https://www.dcloud.io/hbuilderx.html' // 兼容低版本的网页链接

plus.share.getServices(service => {  
  const weixin = service.find(i => i.id === 'weixin')  
  if (weixin) {  
    weixin.launchMiniProgram({  
      id: originId,  
      path,  
      type: envVersion,  
      webUrl  
    }, res => {  
      console.log('res', res)  
    }, err => {  
      console.log('err', err)  
    })
0 关注 分享

要回复文章请先登录注册

d***@pxo.cn

d***@pxo.cn

由于应用包命签名信息校验不通过,无法分享到微信 提示这个问题是怎么回事呢?
2025-04-14 11:27
蔡cai

蔡cai

回复 d***@pxo.cn :
https://open.weixin.qq.com/
2025-04-14 09:45
d***@pxo.cn

d***@pxo.cn

回复 1***@qq.com :
这个地方要在哪里配置啊?
2025-04-14 09:30
1***@qq.com

1***@qq.com

配置一下开发平台的移动应用
2025-03-25 09:19
栉风

栉风

什么原因啊 怎么解决的
2025-03-07 15:23