mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 22:11:40 +08:00
群发接口响应 增加msgDataId字段 用于图文分析
This commit is contained in:
parent
2ec3c527c2
commit
902b6897a1
@ -20,6 +20,7 @@ public class WxMpMassSendResult implements Serializable {
|
||||
private String errorCode;
|
||||
private String errorMsg;
|
||||
private String msgId;
|
||||
private String msgDataId;
|
||||
|
||||
public String getErrorCode() {
|
||||
return errorCode;
|
||||
@ -44,7 +45,15 @@ public class WxMpMassSendResult implements Serializable {
|
||||
public void setMsgId(String msgId) {
|
||||
this.msgId = msgId;
|
||||
}
|
||||
|
||||
|
||||
public String getMsgDataId() {
|
||||
return msgDataId;
|
||||
}
|
||||
|
||||
public void setMsgDataId(String msgDataId) {
|
||||
this.msgDataId = msgDataId;
|
||||
}
|
||||
|
||||
public static WxMpMassSendResult fromJson(String json) {
|
||||
return WxMpGsonBuilder.create().fromJson(json, WxMpMassSendResult.class);
|
||||
}
|
||||
|
@ -34,6 +34,9 @@ public class WxMpMassSendResultAdapter implements JsonDeserializer<WxMpMassSendR
|
||||
if (sendResultJsonObject.get("msg_id") != null && !sendResultJsonObject.get("msg_id").isJsonNull()) {
|
||||
sendResult.setMsgId(GsonHelper.getAsString(sendResultJsonObject.get("msg_id")));
|
||||
}
|
||||
if (sendResultJsonObject.get("msg_data_id") != null && !sendResultJsonObject.get("msg_data_id").isJsonNull()) {
|
||||
sendResult.setMsgDataId(GsonHelper.getAsString(sendResultJsonObject.get("msg_data_id")));
|
||||
}
|
||||
return sendResult;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user