小程序中打开其他小程序为什么会报错?

小程序 文章 2022-04-08 11:00 449 0 全屏看文

AI助手支持GPT4.0

小程序中打开其他小程序为什么会报错?Why do I get an error when I open another applet in the applet?

小程序中打开其他小程序为什么会报错?

 <navigator

 target="miniProgram"

 open-type="navigate"

 app-id="gh_38a3b942dcc5"

 path=""

 extra-data="{{extraData}}"

 version="develop"

 bindsuccess="toMiniProgramSuccess"      bindfail="fails">点击打开<avigator>

改成其他小程序appid可以打开,但是这个为什么报错呢?

这种情况是小程序账号有什么设置还是?

报错内容:checkBeforeNavigateToMiniProgram:fail invalid appid

< navigator target = "miniprogram" open type = "navigate" app id = "gh_38a3b942dcc5" path = "" extra data = "{extradata}" version = "develop" bindsuccess = "tominiprogramsuccess" bindmail = "failures" > click Open < / navigator > to open other applet appids, but why do you report an error? In this case, what are the settings of the applet account or? Error content: checkbeforenavigatetominiprogram: fail invalid appid

回答:

Francis:

你这是小程序原始ID 得是小程序设置完信息后的小程序ID才行吧, 类似wxc40e360ff73478bb这种格式的

再见,电脑崽:

appid填错了,应该是wxa************开头的。

那一抹笑😃 穿透阳光:

app-id错了

-EOF-

AI助手支持GPT4.0