mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-07 22:27:47 +08:00
🐛 #1985 【企业微信】修复群机器人发送消息的部分错误代码
This commit is contained in:
parent
7e68b576cc
commit
f40547a459
@ -76,7 +76,7 @@ public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendImage(String webhookUrl, String base64, String md5) throws WxErrorException {
|
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)
|
.setMsgType(GroupRobotMsgType.IMAGE)
|
||||||
.setBase64(base64)
|
.setBase64(base64)
|
||||||
.setMd5(md5).toJson());
|
.setMd5(md5).toJson());
|
||||||
@ -84,7 +84,7 @@ public class WxCpGroupRobotServiceImpl implements WxCpGroupRobotService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendNews(String webhookUrl, List<NewArticle> articleList) throws WxErrorException {
|
public void sendNews(String webhookUrl, List<NewArticle> articleList) throws WxErrorException {
|
||||||
this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage()
|
this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage()
|
||||||
.setMsgType(GroupRobotMsgType.NEWS)
|
.setMsgType(GroupRobotMsgType.NEWS)
|
||||||
.setArticles(articleList).toJson());
|
.setArticles(articleList).toJson());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user