mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 16:18:51 +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 errorCode;
|
||||||
private String errorMsg;
|
private String errorMsg;
|
||||||
private String msgId;
|
private String msgId;
|
||||||
|
private String msgDataId;
|
||||||
|
|
||||||
public String getErrorCode() {
|
public String getErrorCode() {
|
||||||
return errorCode;
|
return errorCode;
|
||||||
@ -45,6 +46,14 @@ public class WxMpMassSendResult implements Serializable {
|
|||||||
this.msgId = msgId;
|
this.msgId = msgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getMsgDataId() {
|
||||||
|
return msgDataId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMsgDataId(String msgDataId) {
|
||||||
|
this.msgDataId = msgDataId;
|
||||||
|
}
|
||||||
|
|
||||||
public static WxMpMassSendResult fromJson(String json) {
|
public static WxMpMassSendResult fromJson(String json) {
|
||||||
return WxMpGsonBuilder.create().fromJson(json, WxMpMassSendResult.class);
|
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()) {
|
if (sendResultJsonObject.get("msg_id") != null && !sendResultJsonObject.get("msg_id").isJsonNull()) {
|
||||||
sendResult.setMsgId(GsonHelper.getAsString(sendResultJsonObject.get("msg_id")));
|
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;
|
return sendResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user