收藏
回答

自定义菜单创建报错!443

https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html

接口:https://api.weixin.qq.com/cgi-bin/menu/create?access_token=

两个创建的json 一个总是异常。另一个没问题

(这两个在 在线接口测试都没问题)我真的无语了

I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {s}->https://api.weixin.qq.com:443: The target server failed to respond

Retrying request to {s}->https://api.weixin.qq.com:443

创建个菜单搞了一上午,我真的不想发帖!实在受不了了

报错的json:

{

"button": [{

"name": "我要下单",

"sub_button": [{

"type": "miniprogram",

"name": "行李",

"url": "https://m.xxxx.com/#/",

"appid": "xxx",

"pagepath": "pages/transportLuggage/index/index"

},

{

"type": "click",

"name": "名字1",

"key": "sameDayArrival"

}, {

"type": "miniprogram",

"name": "名字2",

"url": "https://m.xxx.com/#/",

"appid": "xxx",

"pagepath": "pages/transportLuggage/index/harborOrder"

},

{

"type": "miniprogram",

"name": "个人中心",

"url": "https://m.xxx.com/#/",

"appid": "xxx",

"pagepath": "xxx"

}

]

},

{

"name": "我要买",

"sub_button": [{

"type": "miniprogram",

"name": "当季热卖",

"url": "xxx",

"appid": "xxx",

"pagepath": "xxx"

}, {

"type": "click",

"name": "精选团购",

"key": "FeaturedGroupBuying"

}]

},

{

"name": "关于我们",

"sub_button": [{

"type": "click",

"name": "客服热线",

"key": "xxx"

}, {

"type": "view",

"name": "公司介绍",

"url": "xxxx"

}]

}

]

}

回答关注问题邀请回答
收藏

1 个回答

  • 老田
    老田
    2022-05-19

    用这个测试json都没问题

    2022-05-19
    有用
    回复
登录 后发表内容