一:我一共订阅了2个消息,都未收到。都是一次性订阅消息(不存在多次提醒),并且设置的是“总是保持以上选择,不再询问”。
1)2023-12-01 08:03:02 订阅了一个消息:带手套
2)2023-12-01 08:02:38 订阅了一个消息:拿纸巾去公司
二:创建以上2个订阅消息后,微信服务器给我回的报文如下:
1)微信返回相关行为事件结果{CreateTime=1701388957, Event=subscribe_msg_popup_event, SubscribeMsgPopupEvent=
, ToUserName=gh_2813279af9a4, FromUserName=o_-E55MrsVXZFP4kYfUTLvhPvX9M, MsgType=event}:
2023-12-01 08:02:38.034 INFO com.fyq.controller.WechatMiniMsgController - xmlStr: <xml>
<ToUserName><![CDATA[o_-E55MrsVXZFP4kYfUTLvhPvX9M]]></ToUserName>
<FromUserName><![CDATA[gh_2813279af9a4]]></FromUserName>
<CreateTime><![CDATA[1701388958034]]></CreateTime>
<MsgType><![CDATA[transfer_customer_service]]></MsgType>
</xml>
2)微信返回相关行为事件结果{CreateTime=1701388981, Event=subscribe_msg_popup_event, SubscribeMsgPopupEvent=
, ToUserName=gh_2813279af9a4, FromUserName=o_-E55MrsVXZFP4kYfUTLvhPvX9M, MsgType=event}:
2023-12-01 08:03:01.545 INFO com.fyq.controller.WechatMiniMsgController - xmlStr: <xml>
<ToUserName><![CDATA[o_-E55MrsVXZFP4kYfUTLvhPvX9M]]></ToUserName>
<FromUserName><![CDATA[gh_2813279af9a4]]></FromUserName>
<CreateTime><![CDATA[1701388981544]]></CreateTime>
<MsgType><![CDATA[transfer_customer_service]]></MsgType>
</xml>
三:我在2023-12-03 20:30:00 和2023-12-03 21:12:00 均未收到订阅消息,查看日志如下:
1){"data":{"time11":{"value":"2023-12-03 20:30:00"},"thing13":{"value":"今日事今日毕,记得尽快处理哦!"},"thing4":{"value":"拿纸巾去公司"},"thing1":{"value":" "}},"page":"/pages/index/index","template_id":"YkkrtzkKz6QhVLrnUhYI2Pmrp0vqRH-3zZgtchCkttM","touser":"o_-E55MrsVXZFP4kYfUTLvhPvX9M"}
2023-12-03 20:30:00.276 INFO com.fyq.utils.WechatMiniTokenUtils - 发送订阅消息返回结果: {"errcode":43101,"errmsg":"user refuse to accept the msg rid: 656c74c8-4b2b8b48-281e83a1"}
2){"data":{"time11":{"value":"2023-12-03 21:12:00"},"thing13":{"value":"今日事今日毕,记得尽快处理哦!"},"thing4":{"value":"带手套"},"thing1":{"value":" "}},"page":"/pages/index/index","template_id":"YkkrtzkKz6QhVLrnUhYI2Pmrp0vqRH-3zZgtchCkttM","touser":"o_-E55MrsVXZFP4kYfUTLvhPvX9M"}
2023-12-03 21:12:00.289 INFO com.fyq.utils.WechatMiniTokenUtils - 发送订阅消息返回结果: {"errcode":43101,"errmsg":"user refuse to accept the msg rid: 656c7ea0-31835ab7-3fc331df"}
不知道哪里出了问题。而且这个问题很频繁,出现至少8次了。
严重怀疑官方接口bug,但是官方没人回复
43101问题,是因为这个模板可能被很多场景使用,导致次数用完了。正常页面订阅一次只能发一条消息,订阅5次发5条。但是有的场景推送消息没有触发订阅,但占用了推送次数,导致后面的推送失败。所以排查下这个模板是不是有多场景共用的情况。