🐛 修复一个字段值表达转换问题

This commit is contained in:
Binary Wang 2020-07-26 23:47:23 +08:00
parent fa24f789ed
commit 7ef9e9153d

View File

@ -48,9 +48,16 @@ public class WxMpMassOpenIdsMessageGsonAdapter implements JsonSerializer<WxMpMas
messageJson.add(WxConsts.MassMsgType.MPVIDEO, sub);
}
messageJson.addProperty("msgtype", message.getMsgType());
messageJson.addProperty("send_ignore_reprint", message.isSendIgnoreReprint() ? 0 : 1);
if(StringUtils.isNotEmpty(message.getClientMsgId())){
/*
开发者可以对群发接口的 send_ignore_reprint 参数进行设置指定待群发的文章被判定为转载时是否继续群发
send_ignore_reprint 参数设置为1时文章被判定为转载时且原创文允许转载时将继续进行群发操作
send_ignore_reprint 参数设置为0时文章被判定为转载时将停止群发操作
send_ignore_reprint 默认为0
*/
messageJson.addProperty("send_ignore_reprint", message.isSendIgnoreReprint() ? 1 : 0);
if (StringUtils.isNotEmpty(message.getClientMsgId())) {
messageJson.addProperty("clientmsgid", message.getClientMsgId());
}