mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🐛 #1985 【企业微信】修复群机器人发送消息的部分错误代码
This commit is contained in:
parent
7e68b576cc
commit
f40547a459
@ -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<NewArticle> articleList) throws WxErrorException {
|
||||
this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage()
|
||||
this.cpService.postWithoutToken(webhookUrl, new WxCpGroupRobotMessage()
|
||||
.setMsgType(GroupRobotMsgType.NEWS)
|
||||
.setArticles(articleList).toJson());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user