微信公众号转发客服,在客服接入前,客服接收不到图片?
微信公众号转发客服,在客服接入前,客服接收不到图片,只能接到文字,只有当客服接入后,才可以收到粉丝发的图片
private String toCustomer(String toUserName,String openid,Long createTime){
//String toUserName = "TO_USER_NAME";
//String openid = "OPEN_ID";
String responseMessage = "success";
TextMessage textMessage = new TextMessage();
textMessage.setToUserName(openid);
textMessage.setFromUserName(toUserName);
textMessage.setCreateTime(createTime);
//textMessage.setMsgType(WeChatUtil.RESP_MESSAGE_TYPE_TEXT);
String text = "接入人工客服......";
//textMessage.setContent(text);
textMessage.setMsgType("transfer_customer_service");
responseMessage = WeChatUtil.textMessageToXml(textMessage);
logger.info(responseMessage + "=========");
//responseMessage = responseMessage.replace("TO_USER_NAME", toUserName).replace("OPEN_ID", openid);
return responseMessage;
}