mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-14 18:25:10 +08:00
#416 修改删除群发接口的消息ID参数类型为Long
This commit is contained in:
@@ -114,6 +114,6 @@ public interface WxMpMassMessageService {
|
||||
* @param msgId 发送出去的消息ID
|
||||
* @param articleIndex 要删除的文章在图文消息中的位置,第一篇编号为1,该字段不填或填0会删除全部文章
|
||||
*/
|
||||
void delete(Integer msgId, Integer articleIndex) throws WxErrorException;
|
||||
void delete(Long msgId, Integer articleIndex) throws WxErrorException;
|
||||
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ public class WxMpMassMessageServiceImpl implements WxMpMassMessageService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(Integer msgId, Integer articleIndex) throws WxErrorException {
|
||||
public void delete(Long msgId, Integer articleIndex) throws WxErrorException {
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
jsonObject.addProperty("msg_id", msgId);
|
||||
jsonObject.addProperty("article_idx", articleIndex);
|
||||
|
@@ -183,7 +183,7 @@ public class WxMpMassMessageServiceImplTest {
|
||||
|
||||
@Test
|
||||
public void testMassDelete() throws Exception {
|
||||
this.wxService.getMassMessageService().delete(1,2);
|
||||
this.wxService.getMassMessageService().delete(1L,2);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user