Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

企业微信机器人webhookUrl地址问题 #1985

Closed
adogcode opened this issue Feb 1, 2021 · 2 comments
Closed

企业微信机器人webhookUrl地址问题 #1985

adogcode opened this issue Feb 1, 2021 · 2 comments
Milestone

Comments

@adogcode
Copy link

adogcode commented Feb 1, 2021

简要描述

企业微信机器人webhookUrl地址无法在调用接口中设置,WxCpGroupRobotServiceImpl

模块版本情况

  • WxJava 模块名: weixin-java-cp
  • WxJava 版本号:4.0.0

详细描述

@OverRide
public void sendNews(String webhookUrl, List articleList) throws WxErrorException {
this.cpService.postWithoutToken(this.getWebhookUrl(), new WxCpGroupRobotMessage()
.setMsgType(GroupRobotMsgType.NEWS)
.setArticles(articleList).toJson());
}

日志

无法在接口中设置url地址:
image

@adogcode
Copy link
Author

adogcode commented Feb 1, 2021

另外咨询下,如果我想用机器人发送一个不带picurl的news消息应该怎么处理?picurl设置为null的话不行。

@binarywang
Copy link
Member

顶楼提到的确实是疏忽导致,会稍后修复的

另外咨询下,如果我想用机器人发送一个不带picurl的news消息应该怎么处理?picurl设置为null的话不行。

不行的意思是什么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants