Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix moment miss field #2387

Merged
merged 10 commits into from
Nov 17, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class WxCpGetMomentComments extends WxCpBaseResp {
public static class CommentLikeItem {
@SerializedName("external_userid")
private String externalUserId;
@SerializedName("userid")
private String userid;
@SerializedName("create_time")
private Long createTime;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.chanjar.weixin.cp.bean.external.moment;

import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
import me.chanjar.weixin.cp.bean.external.msg.Image;
import me.chanjar.weixin.cp.bean.external.msg.Link;
Expand All @@ -21,7 +22,7 @@ public class MomentInfo {
@SerializedName("visible_type")
private Integer visibleType;
private Text text;
private Image image;
private List<Image> image;
private Video video;
private Link link;
private Location location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,12 @@ public void testGetProductListAlbum() throws WxErrorException {
}
}

@Test
public void testGetMomentList() throws WxErrorException {
WxCpGetMomentList result = this.wxCpService.getExternalContactService()
.getMomentList(1636732800L, 1636991999L, null, null, null, null);
System.out.println(result);
assertNotNull(result);
}

}