随笔 - 89  文章 - 0  评论 - 2  阅读 - 11万 

在菜单中设置此项。

{
   "type": "miniprogram",
    "url":"http://mp.weixin.qq.com",
    "appid":"*****************",//小程序appid
    "pagepath":"pages/user/user?uid=user",
     "name": "个人中心"
}

 

若是公众号菜单,则设置为:

{
    "type": "view",
     "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid='公众号的appid'&redirect_uri=要访问的路径,
    "name": "菜单名称"
}

 

错误:

1. {"errcode":40166,"errmsg":"invalid weapp appid hint: [uSdBFA0706vr22]"}

参数appid填写错误,appid参数为小程序appid,需要去小程序的后台去查询;而不是关联的小程序原始id

2.{"errcode":85005,"errmsg":"appid not bind weapp hint: [TtM_1a0070vr20]"}

参数appid填写错误,或者对应公众号没有绑定对应的appid小程序

posted on   我的梦想是开个小店  阅读(144)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示