收藏
回答

全网检测客服消息推送异常,请教下怎么解决?

 一、期初我是调用这个接口https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?access_token=?获取授权码信息。

1.提交请求获取小程序授权码信息参数:{"authorization_code":"queryauthcode@@@3ahuPjzkGwaCfaLCUJqKMqvinhhyIcmJYLIQL5rB_XgOv1BODeI_QkXIOGKECsLPBkR9sX4qJNSvcOjNo7q-GQ"}

 2.获取到小程序授权码信息:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, could get access_token by getStableAccessToken, more details at https://mmbizurl.cn/s/JtxxFh33r rid: 64bde57f-6bc352d8-7da67958"}

二、然后根据提示改调用https://api.weixin.qq.com/cgi-bin/stable_token这个接口获取,

 获取到小程序授权码信息:{"access_token":"70_U5YRUTAEytb3EPrTc4kGGQ0P46WWG6kY6FABkbcXoEo68xSbSnpG-TR3W8Ya_Uy4qoRI8IalxMyIpXyc1AEz6MXzE18N3ApNkTfrnNndNYxGSeN3vubTiJkQ0DUPHQbAJADVE","expires_in":7200}

紧接着调用客服消息推送接口https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=

 提交发送微信客服消息参数:{"access_token":"70_U5YRUTAEytb3EPrTc4kGGQ0P46WWG6kY6FABkbcXoEo68xSbSnpG-TR3W8Ya_Uy4qoRI8IalxMyIpXyc1AEz6MXzE18N3ApNkTfrnNndNYxGSeN3vubTiJkQ0DUPHQbAJADVE","msgtype":"text","text":{"content":"queryauthcode@@@IXO3bcUTYVarcLr1om6fXg_eDsww5yInIpVpxXqoF334_7isAKNXSL1uGIRIcfxWc-5Nrxl0gg1ZOIJuaOfVeg_from_api"},"touser":"ozy4qt5QUADNXORxCVipKMV9dss0"}

 发送微信客服消息反馈:{"errcode":48001,"errmsg":"api unauthorized rid: 64bfab39-365f7caa-59d4a156"}

按照客服消息接口说明:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html#0

是要先新增客服账号吗?我测试的是小程序,接口说明中是新增的公众号客服账号。帮解答下,谢谢!


最后一次编辑于  2023-07-28
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容