微信公众号转发客服,在客服接入前,客服接收不到图片?
发布于 4 年前 作者 juan41 2951 次浏览 来自 问答

微信公众号转发客服,在客服接入前,客服接收不到图片,只能接到文字,只有当客服接入后,才可以收到粉丝发的图片

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;
}
1 回复

你好,提供你的公众号appid,对应的客服微信号,图片发送时间等信息。

回到顶部