微信小程序跳转微信小程序新增配置项目 navigateToMiniProgramAppIdList

每个小程序可跳转的其他小程序数量限制为不超过 10 个

从 2.4.0 版本以及指定日期(具体待定)开始,开发者提交新版小程序代码时,如使用了跳转其他小程序功能,则需要在代码配置中声明将要跳转的小程序名单,限定不超过 10 个,否则将无法通过审核。该名单可在发布新版时更新,不支持动态修改。配置方法详见 配置。调用此接口时,所跳转的 appId 必须在配置列表中,否则回调 fail appId "${appId}" is not in navigateToMiniProgramAppIdList

详情:https://developers.weixin.qq.com/miniprogram/dev/framework/config.html#%E5%85%A8%E5%B1%80%E9%85%8D%E7%BD%AE

示例:

app.json

{
  "pages":[
    "pages/index/index",
    "pages/logs/logs"
  ],
"navigateToMiniProgramAppIdList":[
    "wxcbe110fu2xaxedfu",
    "wxfb1ff0f3u0abe913",
    "wxc1b5d81exdad1efe",
    "wxu8caa30cd32c1fb9",
    "wx52axxb89fx3xe23c"
]
}

猜你喜欢

转载自www.cnblogs.com/ecstore/p/9896689.html