mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
Merge pull request #41 from mgcnrx11/feat-custom-msg-wxcard
新增卡券的客服消息类型
This commit is contained in:
@@ -75,6 +75,12 @@ public class WxMpCustomMessageGsonAdapter implements JsonSerializer<WxMpCustomMe
|
||||
newsJsonObject.add("articles", articleJsonArray);
|
||||
messageJson.add("news", newsJsonObject);
|
||||
}
|
||||
|
||||
if (WxConsts.CUSTOM_MSG_WXCARD.equals(message.getMsgType())) {
|
||||
JsonObject wxcard = new JsonObject();
|
||||
wxcard.addProperty("card_id", message.getCardId());
|
||||
messageJson.add("wxcard", wxcard);
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(message.getKfAccount())){
|
||||
JsonObject newsJsonObject = new JsonObject();
|
||||
|
||||
Reference in New Issue
Block a user