收藏
回答

真机调试跳转成功 发布体验版后安卓报错说appid相同?

宿主小程序的 App ID 是wx11111111111,插件的 App ID 是wx22222222222,而目标小程序的 App ID 是wx3333333333。这种情况下,理论上是可以正常跳转的 小程序配置了我的插件App ID wx22222222222 让我的插件在小程序中运行 而我的插件页面 又使用了navigateToMiniProgram跳转到小程序 App ID 为wx3333333333 真机调试无论安卓还是苹果都正常跳转 但是小程序弄了一个体验版 我调用 wx.navigateToMiniProgram({

appId: 'wx3333333333',

path: 'pages/show/show?code=1423',

extraData: {

foo: 'bar'

},

envVersion: 'trial',

success(res) {

console.log(res,"成");

},

fail(error) {

console.error(error, "失败");

}

})却报错SystemError (appServiceSDKScriptError)

:target appId is the same as the caller appId

Error: :target appId is the same as the caller appId

at Function.fail (WAServiceMainContext.js:1:634728)

at p (WAServiceMainContext.js:1:162901)

at Object.fail (WAServiceMainContext.js:1:163344)

at Ou (WAServiceMainContext.js:1:641351)

at Nu (WAServiceMainContext.js:1:642085)

at (WAServiceMainContext.js:1:642284)

at s (WAServiceMainContext.js:1:123049)

at n.callAndRemove (WAServiceMainContext.js:1:118597)

at Object.invokeCallbackHandler (WAServiceMainContext.js:1:122084)

at ret.invokeCallbackHandler (<anonymous>:64:28)

回答关注问题邀请回答
收藏
登录 后发表内容