diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java index c20c4a138..9661adf47 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java @@ -76,7 +76,7 @@ public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService { @Override public void sendImage(String webhookUrl, String base64, String md5) throws WxErrorException { - this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage() + this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage() .setMsgType(GroupRobotMsgType.IMAGE) .setBase64(base64) .setMd5(md5).toJson()); @@ -84,7 +84,7 @@ public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService { @Override public void sendNews(String webhookUrl, List articleList) throws WxErrorException { - this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage() + this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage() .setMsgType(GroupRobotMsgType.NEWS) .setArticles(articleList).toJson()); }