NutzCN Logo
问答 后台给微信公众号推送消息,前3条测试推送所有人成功,后面推送的都无法收到!
发布于 11天前 作者 qq_6d75074b 94 次浏览 复制 上一个帖子 下一个帖子
标签:
2019-07-11 11:51:53,387 org.nutz.weixin.impl.AbstractWxApi2.call(AbstractWxApi2.
java:282) DEBUG - {
   "touser": ["on3VH506itp5i82OidM8ms_JUrvA", "on3VH50CZbhn2F-oolnppyifVL5w", "o
n3VH50n1VE-FB5ZiBK3sfkoKnO4", "on3VH50tiNnNKhK0pfw5-O2F2NM0", "on3VH51FDoU1PpsDF
1w3KSzkZDww", "on3VH51pr6wL7R7iHZ_h-3UNdaFo", "on3VH53iGJdyJjpxJ4AGDgDKvP9s", "o
n3VH54BNsDIEKHiiLO3eRCPs1_E", "on3VH54C-vw_ARxOSJSLPSnGxQds", "on3VH54Wqomepy7Hx
DJS02rsUn8k", "on3VH56X7nv_t86lUaEobiqjljEY", "on3VH57YXFDVJkuSeIJzpR2bABbw", "o
n3VH588wU71YI-ieGPCbVvJ4EtA", "on3VH58_VJCbbo_BjuUK2FPeZgD0", "on3VH5w3udO6LQSul
9CtNuFANkMo", "on3VH5wHK0PTdF8S-Edcbvjk4yfM", "on3VH5x5Bhn7JzCMCO1NoZPq73ig", "o
n3VH5xgfkbyf3ps0jnbUgIOMY80"],
   "text": {
      "content": "三空间数据分类:wxpatient/html/imagetext.html?imagetextid=3"
   },
   "msgtype": "text"
}

@At // 消息推送给所有人 public WxResp mass_sendall(@Param("msg") WxOutMsg msg, HttpSession session) { return wxApi2.mass_sendall(true, null, msg); } @At // 消息推送给指定人员 public WxResp mass_send(@Param("to_user") List<String> to_user, @Param("msg") WxOutMsg msg, HttpSession session) { return wxApi2.mass_send(to_user, msg); }
10 回复

看微信服务器的返回值

{"errcode":45028,"errmsg":"has no masssend quota hint: [8S8Yha0730shb1]"}

服务号? 一个月就4次推送

这个是按人发的

{"errcode":0,"errmsg":"send job submission success","msg_id":3147483655}

超了就发不了, 微信就这样

按人发送也收不到

@At // 消息推送给指定人员
	public WxResp mass_send(@Param("to_user") List<String> to_user, @Param("msg") WxOutMsg msg, HttpSession session) {
		return wxApi2.mass_send(to_user, msg);
	}
2019-07-11 11:51:53,387 org.nutz.weixin.impl.AbstractWxApi2.call(AbstractWxApi2.
java:282) DEBUG - {
   "touser": ["on3VH506itp5i82OidM8ms_JUrvA", "on3VH50CZbhn2F-oolnppyifVL5w", "o
n3VH50n1VE-FB5ZiBK3sfkoKnO4", "on3VH50tiNnNKhK0pfw5-O2F2NM0", "on3VH51FDoU1PpsDF
1w3KSzkZDww", "on3VH51pr6wL7R7iHZ_h-3UNdaFo", "on3VH53iGJdyJjpxJ4AGDgDKvP9s", "o
n3VH54BNsDIEKHiiLO3eRCPs1_E", "on3VH54C-vw_ARxOSJSLPSnGxQds", "on3VH54Wqomepy7Hx
DJS02rsUn8k", "on3VH56X7nv_t86lUaEobiqjljEY", "on3VH57YXFDVJkuSeIJzpR2bABbw", "o
n3VH588wU71YI-ieGPCbVvJ4EtA", "on3VH58_VJCbbo_BjuUK2FPeZgD0", "on3VH5w3udO6LQSul
9CtNuFANkMo", "on3VH5wHK0PTdF8S-Edcbvjk4yfM", "on3VH5x5Bhn7JzCMCO1NoZPq73ig", "o
n3VH5xgfkbyf3ps0jnbUgIOMY80"],
   "text": {
      "content": "三空间数据分类:wxpatient/html/imagetext.html?imagetextid=3"
   },
   "msgtype": "text"
}

提供客服帐号发送消息的接口吗?

WxApi2Impl实现了WxCustomServiceApi, 对应 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140547
但没有custom/send实现, 实现一下, 来个pull request试试?

再说, 客服消息也是需要用户交互后,才能在48小时发, 跟mass_send一个样

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