NutzCN Logo
问答 WxResp send(WxOutMsg out) news 多条发出去收不了,单条没问题,请问一下什么原因?
发布于 1942天前 作者 qq_6d75074b 1745 次浏览 复制 上一个帖子 下一个帖子
标签:
2019-07-22 22:42:00,094 org.nutz.weixin.impl.AbstractWxApi2.call(AbstractWxApi2.java:300) INFO  - wxapi call: /message/custom/send
2019-07-22 22:42:00,094 org.nutz.weixin.impl.AbstractWxApi2.call(AbstractWxApi2.java:302) DEBUG - {
   "touser": "on3VH54Wqomepy7HxDJS02rsUn8k",
   "msgtype": "news",
   "news": {
      "articles": [{
         "title": "三空间数据分类",
         "picurl": "https://24736g26e1.zicp.vip//upload/imagetextheader/1555605321043.jpg",
         "url": "https://24736g26e1.zicp.vip/bmpt/wxpatient/html/imagetext.html?a=3"
      }, {
         "title": "测试",
         "description": "内容测试,内容测试,内容测试,内容测试",
         "picurl": "https://24736g26e1.zicp.vip//upload/imagetextheader/1555605321043.jpg",
         "url": "www.sina.com"
      }]
   }
}

    @Override
    public WxResp send(WxOutMsg out) {
        if (out.getFromUserName() == null)
            out.setFromUserName(openid);
        String str = Wxs.asJson(out);
        if (Wxs.DEV_MODE)
            log.debug("api out msg>\n" + str);
        return call("/message/custom/send", METHOD.POST, str);
    }

1 回复

看返回值呀。。。

添加回复
请先登陆
回到顶部