🐛 修复图文消息留言管理接口中msgDataId类型与群发消息接口的消息id类型不一致问题

This commit is contained in:
Binary Wang
2019-12-20 12:54:40 +08:00
parent e1ca4e02b7
commit 71ba078768
3 changed files with 12 additions and 12 deletions

View File

@ -31,14 +31,14 @@ public class WxMpCommentServiceImplTest {
@Test
public void testOpen() throws WxErrorException {
this.wxService.getCommentService().open(1, null);
this.wxService.getCommentService().open(1, 0);
this.wxService.getCommentService().open("1", null);
this.wxService.getCommentService().open("1", 0);
}
@Test
public void testClose() throws WxErrorException {
this.wxService.getCommentService().close(1000000001, null);
this.wxService.getCommentService().close(1, 0);
this.wxService.getCommentService().close("1000000001", null);
this.wxService.getCommentService().close("1", 0);
}
@Test
@ -66,7 +66,7 @@ public class WxMpCommentServiceImplTest {
WxMpCommentService commentService = new WxMpCommentServiceImpl(wxService);
doReturn(expectedResponse).when(wxService).post(anyString(), anyString());
final WxMpCommentListVo commentListVo = commentService.list(1, 1, 1, 1, 1);
final WxMpCommentListVo commentListVo = commentService.list("1", 1, 1, 1, 1);
assertThat(commentListVo).isNotNull();
System.out.println(commentListVo);
assertThat(commentListVo.getTotal()).isEqualTo(1);