mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🐛 修复一个字段值表达转换问题
This commit is contained in:
parent
fa24f789ed
commit
7ef9e9153d
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user