Skip to content

Commit f40547a

Browse files
committed
🐛 binarywang#1985 【企业微信】修复群机器人发送消息的部分错误代码
1 parent 7e68b57 commit f40547a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpGroupRobotServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ public void sendMarkdown(String webhookUrl, String content) throws WxErrorExcept
7676

7777
@Override
7878
public void sendImage(String webhookUrl, String base64, String md5) throws WxErrorException {
79-
this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage()
79+
this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage()
8080
.setMsgType(GroupRobotMsgType.IMAGE)
8181
.setBase64(base64)
8282
.setMd5(md5).toJson());
8383
}
8484

8585
@Override
8686
public void sendNews(String webhookUrl, List<NewArticle> articleList) throws WxErrorException {
87-
this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage()
87+
this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage()
8888
.setMsgType(GroupRobotMsgType.NEWS)
8989
.setArticles(articleList).toJson());
9090
}

0 commit comments

Comments
 (0)