功能描述
商家客服模块支持向用户发送客服消息,目前WxJava完全未实现。
官方文档
https://developers.weixin.qq.com/doc/channels/API/kf/
需要实现的接口列表(2个)
| 接口名称 |
请求路径 |
| 上传多媒体资源 |
/channels/ec/commkf/cosupload |
| 发送消息 |
/channels/ec/commkf/sendmsg |
实现要点
1. 新建服务接口
public interface WxChannelKfService {
/**
* 上传多媒体资源
* @param type 资源类型: image/video/file
* @param file 文件内容
* @return media_id
*/
String uploadMedia(String type, byte[] file) throws WxErrorException;
/**
* 发送客服消息
* @param openId 用户openid
* @param msgType 消息类型: text/image/video/file/product_share/order_share
* @param content 消息内容
*/
void sendMessage(String openId, String msgType, Object content) throws WxErrorException;
}
功能描述
商家客服模块支持向用户发送客服消息,目前WxJava完全未实现。
官方文档
https://developers.weixin.qq.com/doc/channels/API/kf/
需要实现的接口列表(2个)
/channels/ec/commkf/cosupload/channels/ec/commkf/sendmsg实现要点
1. 新建服务接口