1.用个人微信注册公众号地址:
http://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index
2.根据appid 和secret 获取access_token
https://mp.weixin.qq.com/debug/
3.根据上面第二步拿到的access_token创建菜单,
https://mp.weixin.qq.com/debug/
创建菜单数据的格式:
{ "button": [ { "name": "生产环境", "sub_button": [ { "type": "view", "name": "壹马XXX", "url": "https://XXXXXXX/home" }, { "type": "view", "name": "江铃XXX", "url": "https://XXXXX/home" }, { "type": "view", "name": "骏派XXX", "url": "https://XXXXXX/home" } ] }, { "name": "测试环境", "sub_button": [ { "type": "view", "name": "车音-XXX", "url": "https://XXXXX/home" }, { "type": "view", "name": "壹马XXX", "url": "https://XXXXXXXXX/home" }, { "type": "view", "name": "江铃XXX", "url": "https://XXXXXXXXX/home" }, { "type": "view", "name": "骏派XXX", "url": "http://XXXXXXXXXXXXXXX/home" } ] } ] }