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