首先我看的文档是电子面单流程:https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/flow.html
发现需要获取access_token,我调用通用API获取https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxd663583a7256c96b&secret=
提示{ "errcode": 61024, "errmsg": "must use api(api_component_token) to get token for component acct rid: 6874c6e7-037a4d9d-52bc46c9"},第三方平台 API 需要使用第三方平台专用 token;
然后我有去找获取 component_access_token:https://api.weixin.qq.com/cgi-bin/component/api_component_token,发现需要获取component_verify_ticket,我就去配置
授权事件接收配置:https://yz2846yx3861.vicp.fun/wms/wechat/getTicketRole(方法我都是直接返回"success")
消息与事件接收配置:https://yz2846yx3861.vicp.fun/wms/wechat/getTicket/$APPID$/callback(方法我都是直接返回"success")
应用是审核通过的,然后点击全网发布,一直提示失败,是不是少了哪一步流程?我都要颠了,有没有参考的案列,这个接口到底要怎么写?直接喂给我吧,我脑子不够。
Appid: wxd663583a7256c96b
时间: 2025-07-15 11:45:52
内容: 微信服务器向公众号服务开发者推送服务事件消息(如取消授权通知等)后,得到的回应不合法(应返回success)
次数: 30分钟 7次
错误样例: [3rdUrl=https://yz2846yx3861.vicp.fun/wms/wechat/getTicketRole][response_length=9][response_content="success"]
报警排查指引,请见: https://mmbizurl.cn/s/MpkaZb8yg
你好,1、报错{"errcode":61024,"errmsg":"must use api(api_component_token) to get token for component acct rid: 6874c6e7-037a4d9d-52bc46c9"},第三方平台获取Token不是通过此接口。注意区分不同Token https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/getting_started/terminology_introduce.html#%E4%B8%89%E3%80%81%E4%B8%8D%E5%90%8C%E7%B1%BB%E5%9E%8B%E7%9A%84token
第三方平台生成Token介绍:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/creat_token.html
2、核实此第三方平台wxd663583a7256c96b的授权事件接收配置URL地址(https://yz2846yx3861.vicp.fun/wms/wechat/getTicketRole)curl 错误码 52 服务器无返回内容,请正确响应success字符串后再观察下。
后续有ticket相关问题可以参考排错指南进行自主排查https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/troubleshooting/component_verify_ticket_troubleshooting.html
https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=wxd663583a7256c96b&pre_auth_code=preauthcode@@@xxxxxx&redirect_uri=http://79k8133h82.vicp.fun&auth_type=5
第三方平台全网已发布成功,是用管理员账号扫描的。
报错截图、还有目前提供的截图、再去公众号【公众平台安全助手】-绑定查询下旗下作为管理员的账号,一起提供在录屏中
提供完整授权复现录屏资料、操作者微信号、对应授权链接、操作时间点
https://developers.weixin.qq.com/community/develop/doc/000e6297b20f488713a35fc236b000
之前我直接返回的"success",提示错误样例: [3rdUrl=https://yz2846yx3861.vicp.fun/wms/wechat/getTicketRole][response_length=9][response_content="success"],然后我就改成返回success
https用不了了,我改成用http:
授权事件接收配置:http://yz2846yx3861.vicp.fun/wms/wechat/getTicketRole(方法我都是直接返回"success")
消息与事件接收配置:http://yz2846yx3861.vicp.fun/wms/wechat/getTicket/$APPID$/callback(方法我都是直接返回"success")
1、检查ticket推送服务已经停止,是正常的。
2、授权事件接收URL问题,我用postman调用是返回的success