Skip to content

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

Closed

Description

@adogcode

简要描述

企业微信机器人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

Activity

  1. adogcode commented on Feb 1, 2021

    @adogcode
    Author

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

  2. binarywang commented on Feb 1, 2021

    @binarywang
    Owner

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

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

    不行的意思是什么?

  3. added this to the 4.0.5 milestone on Feb 1, 2021
  4. added a commit that references this issue on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions