公众号菜单被代码接管后,微信小商店需要放到公众号的菜单上这个该怎么写呢?

小程序 文章 2022-03-17 16:40 0 全屏看文

公众号菜单被代码接管后,微信小商店需要放到公众号的菜单上这个该怎么写呢?After the official account menu is taken over by the code, how to write this on the menu of the WeChat small store?

公众号菜单被代码接管后,微信小商店需要放到公众号的菜单上这个该怎么写呢?

公众号菜单被代码接管后,微信小商店需要放到公众号的菜单上这个该怎么写呢?

是直接按照普通小程序的添加方式吗?因为是生产环境不敢直接尝试.谢谢

After the official account menu is taken over by code, WeChat store needs to be put on the official account menu. How should we write it? Is it added directly according to the ordinary applet? Because it is a production environment, I dare not try it directly thank you

回答:

段成伟:

公众号菜单可以使用token在

https://mp.weixin.qq.com/debug/cgi-bin/apiinfo?t=index&type=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95&form=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%E5%88%9B%E5%BB%BA%E6%8E%A5%E5%8F%A3%20/menu/creat

这个页面上直接修改


想知道这里的json是不是直接按普通小程序写就可以加上微信小店


{    "menu": {        "button": [            {   "type": "click",    "name": "今日歌曲",    "key": "V1001_TODAY_MUSIC",    "sub_button": [ ]            },{   "type": "click",    "name": "歌手简介",    "key": "V1001_TODAY_SINGER",    "sub_button": [ ]            },{   "name": "菜单",    "sub_button": [       {           "type": "view",            "name": "搜索",            "url": "http://www.soso.com/",            "sub_button": [ ]       },        {           "type": "view",            "name": "视频",            "url": "http://v.qq.com/",            "sub_button": [ ]       },        {           "type": "click",            "name": "赞一下我们",            "key": "V1001_GOOD",            "sub_button": [ ]       }   ]            }        ]    }}


青寒:

是要公众号菜单关联小商店对吗?

方法1:让你们开发人员通过接口修改更新菜单;

方法2:找个第三方平台授权你们公众号,然后在第三方平台管理自定义菜单。

段成伟:你好,感谢解答,是的,我就是开发人员,我先试试
四哥派:

是的,appid、路径直接填写就行

-EOF-