微信客服接入自开发踩坑

 

微信开启消息推送后就不会主动推到客服端了,具体流程如下:

deepseek_mermaid_20250828_d6cf82

 

这里响应transfer_customer_service有2个坑:

ToUserName 和 FromUserName 必须根据request body里传过来的ToUserName、FromUserName反向赋值

如果微信后台配置为xml 返回必须也为xml格式,JSON格式则返回JSON格式 

 

 

 

 

 

相关文档:

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/receive.html

https://developers.weixin.qq.com/miniprogram/introduction/custom.html#%E5%B0%86%E6%B6%88%E6%81%AF%E8%BD%AC%E5%8F%91%E5%88%B0%E5%AE%A2%E6%9C%8D

posted @ 2025-08-28 15:14  yutang-bai  阅读(5)  评论(0)    收藏  举报