Skip to content

Commit e9e9a62

Browse files
committed
binarywang#416 修改删除群发接口的消息ID参数类型为Long
1 parent 0a21fe2 commit e9e9a62

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpMassMessageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ public interface WxMpMassMessageService {
114114
* @param msgId 发送出去的消息ID
115115
* @param articleIndex 要删除的文章在图文消息中的位置,第一篇编号为1,该字段不填或填0会删除全部文章
116116
*/
117-
void delete(Integer msgId, Integer articleIndex) throws WxErrorException;
117+
void delete(Long msgId, Integer articleIndex) throws WxErrorException;
118118

119119
}

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpMassMessageServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public WxMpMassSendResult massMessagePreview(WxMpMassPreviewMessage wxMpMassPrev
5757
}
5858

5959
@Override
60-
public void delete(Integer msgId, Integer articleIndex) throws WxErrorException {
60+
public void delete(Long msgId, Integer articleIndex) throws WxErrorException {
6161
JsonObject jsonObject = new JsonObject();
6262
jsonObject.addProperty("msg_id", msgId);
6363
jsonObject.addProperty("article_idx", articleIndex);

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpMassMessageServiceImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public Object[][] massMessages() throws WxErrorException, IOException {
183183

184184
@Test
185185
public void testMassDelete() throws Exception {
186-
this.wxService.getMassMessageService().delete(1,2);
186+
this.wxService.getMassMessageService().delete(1L,2);
187187
}
188188

189189
}

0 commit comments

Comments
 (0)