mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
添加对客服消息发送(点击跳转到图文消息页面) 图文消息的支持 #67
This commit is contained in:
@@ -75,6 +75,12 @@ public class WxMpKefuMessageGsonAdapter implements JsonSerializer<WxMpKefuMessag
|
||||
messageJson.add("news", newsJsonObject);
|
||||
}
|
||||
|
||||
if (WxConsts.CUSTOM_MSG_MPNEWS.equals(message.getMsgType())) {
|
||||
JsonObject json = new JsonObject();
|
||||
json.addProperty("media_id", message.getMpNewsMediaId());
|
||||
messageJson.add("mpnews", json);
|
||||
}
|
||||
|
||||
if (WxConsts.CUSTOM_MSG_WXCARD.equals(message.getMsgType())) {
|
||||
JsonObject wxcard = new JsonObject();
|
||||
wxcard.addProperty("card_id", message.getCardId());
|
||||
|
||||
Reference in New Issue
Block a user