本人使用postman修改
第一步调用:调用 https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
grant_type=client_credential 固定
appid:APPID
secret=APPSECRET
如果出现错误:40001 将自己ip设置到白名单
拿到access_token
第二步:请求 https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=ACCESS_TOKEN
格式参考:https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html
请求参数类型是:json格式