- 发送公众号模板消息,什么情况下会导致微信回调failed:user block呢?
目前我们自己测试了公众号拉黑,用户关闭接收推送文章,取关等场景触发模版消息,均没有办法触发failed:user block用户拒收的场景,但是客户数据中存在failed:user block的数据,能够接收到微信模板消息的「用户拒收事件推送」。如果新版本微信没有用户拒收模版消息的设置,请问什么情况下会导致微信回调failed:user block呢?「用户设置拒绝接收公众号消息」具体有哪些方式呢? [图片] https://developers.weixin.qq.com/community/develop/doc/00040a8fc085c8511d7c8d49a5ac00?_at=1665217429116 [图片] 一个公众号在不同时间向三个用户发送模版消息出现user block的微信回调: [eventType=TEMPLATESENDJOBFINISH], [messageKey='TEMPLATESENDJOBFINISH:e8177633-fa73-459a-b95f-a6efc5e6ce01', messageValue='{"trace_id":"d1870aa6772444f8901a1953ddeb2301T","to_user":"gh_332e03e79108","from_user":"oDaA9uOpwjUDmqvTfRNJ-y3vcJcg","create_time":1665282660,"app_id":"wxde73a844aa8a8260","timestamp":1665282660,"msg_id":2612051293532012544,"status":"failed:user block"}'] [eventType=TEMPLATESENDJOBFINISH], [messageKey='TEMPLATESENDJOBFINISH:794f26a9-da1e-467c-9717-b712d8016732', messageValue='{"trace_id":"c1d75edae06d41299cd92f1ec888aa0aT","to_user":"gh_332e03e79108","from_user":"oDaA9uNVoxn-Hw4OfwEFHxglZJeo","create_time":1665214234,"app_id":"wxde73a844aa8a8260","timestamp":1665214234,"msg_id":2610903294659493889,"status":"failed:user block"}'] [eventType=TEMPLATESENDJOBFINISH], [messageKey='TEMPLATESENDJOBFINISH:7d0ab15d-c97a-46f9-9af3-0e10565db647', messageValue='{"trace_id":"d7bfdbc7480c49e3bcc5b1ca4f1633c2T","to_user":"gh_332e03e79108","from_user":"oDaA9uBqLbj0YmLqRRmM8V-GgquA","create_time":1665187617,"app_id":"wxde73a844aa8a8260","timestamp":1665187617,"msg_id":2610456737866842114,"status":"failed:user block"}']
2022-10-10 - 获取图文群发总数据(getarticletotal)接口获取的数据后一天比前一天少?
请求接口:https://api.weixin.qq.com/datacube/getarticletotal 请求参数: { "begin_date": "2023-10-25", "end_date": "2023-10-25" } 公众号appid:wxef09590e7de97fd0 图文msgId:100003398_1 按照官方文档的注释,群发总数据应该每一天的数据>=前一天的数据 [图片] 但实际调用后int_page_read_user、int_page_read_count 等返回值的数据比前一天还少,请问这是什么原因呢? 接口返回数据: { "ref_date": "2023-10-25", "msgid": "100003398_1", "title": "WMTEST", "user_source": 0, "details": [ { "stat_date": "2023-10-25", "target_user": 1, "int_page_read_user": 5, "int_page_read_count": 8, "ori_page_read_user": 0, "ori_page_read_count": 0, "share_user": 0, "share_count": 0, "add_to_fav_user": 0, "add_to_fav_count": 0, "int_page_from_session_read_user": 5, "int_page_from_session_read_count": 8, "int_page_from_hist_msg_read_user": 0, "int_page_from_hist_msg_read_count": 0, "int_page_from_feed_read_user": 0, "int_page_from_feed_read_count": 0, "int_page_from_friends_read_user": 0, "int_page_from_friends_read_count": 0, "int_page_from_other_read_user": 0, "int_page_from_other_read_count": 0, "feed_share_from_session_user": 0, "feed_share_from_session_cnt": 0, "feed_share_from_feed_user": 0, "feed_share_from_feed_cnt": 0, "feed_share_from_other_user": 0, "feed_share_from_other_cnt": 0 }, { "stat_date": "2023-10-26", "target_user": 1, "int_page_read_user": 4, "int_page_read_count": 7, "ori_page_read_user": 0, "ori_page_read_count": 0, "share_user": 0, "share_count": 0, "add_to_fav_user": 0, "add_to_fav_count": 0, "int_page_from_session_read_user": 4, "int_page_from_session_read_count": 7, "int_page_from_hist_msg_read_user": 0, "int_page_from_hist_msg_read_count": 0, "int_page_from_feed_read_user": 0, "int_page_from_feed_read_count": 0, "int_page_from_friends_read_user": 0, "int_page_from_friends_read_count": 0, "int_page_from_other_read_user": 0, "int_page_from_other_read_count": 0, "feed_share_from_session_user": 0, "feed_share_from_session_cnt": 0, "feed_share_from_feed_user": 0, "feed_share_from_feed_cnt": 0, "feed_share_from_other_user": 0, "feed_share_from_other_cnt": 0 }, { "stat_date": "2023-10-27", "target_user": 1, "int_page_read_user": 4, "int_page_read_count": 7, "ori_page_read_user": 0, "ori_page_read_count": 0, "share_user": 0, "share_count": 0, "add_to_fav_user": 0, "add_to_fav_count": 0, "int_page_from_session_read_user": 4, "int_page_from_session_read_count": 7, "int_page_from_hist_msg_read_user": 0, "int_page_from_hist_msg_read_count": 0, "int_page_from_feed_read_user": 0, "int_page_from_feed_read_count": 0, "int_page_from_friends_read_user": 0, "int_page_from_friends_read_count": 0, "int_page_from_other_read_user": 0, "int_page_from_other_read_count": 0, "feed_share_from_session_user": 0, "feed_share_from_session_cnt": 0, "feed_share_from_feed_user": 0, "feed_share_from_feed_cnt": 0, "feed_share_from_other_user": 0, "feed_share_from_other_cnt": 0 }, { "stat_date": "2023-10-28", "target_user": 1, "int_page_read_user": 4, "int_page_read_count": 7, "ori_page_read_user": 0, "ori_page_read_count": 0, "share_user": 0, "share_count": 0, "add_to_fav_user": 0, "add_to_fav_count": 0, "int_page_from_session_read_user": 4, "int_page_from_session_read_count": 7, "int_page_from_hist_msg_read_user": 0, "int_page_from_hist_msg_read_count": 0, "int_page_from_feed_read_user": 0, "int_page_from_feed_read_count": 0, "int_page_from_friends_read_user": 0, "int_page_from_friends_read_count": 0, "int_page_from_other_read_user": 0, "int_page_from_other_read_count": 0, "feed_share_from_session_user": 0, "feed_share_from_session_cnt": 0, "feed_share_from_feed_user": 0, "feed_share_from_feed_cnt": 0, "feed_share_from_other_user": 0, "feed_share_from_other_cnt": 0 }, { "stat_date": "2023-10-29", "target_user": 1, "int_page_read_user": 4, "int_page_read_count": 7, "ori_page_read_user": 0, "ori_page_read_count": 0, "share_user": 0, "share_count": 0, "add_to_fav_user": 0, "add_to_fav_count": 0, "int_page_from_session_read_user": 4, "int_page_from_session_read_count": 7, "int_page_from_hist_msg_read_user": 0, "int_page_from_hist_msg_read_count": 0, "int_page_from_feed_read_user": 0, "int_page_from_feed_read_count": 0, "int_page_from_friends_read_user": 0, "int_page_from_friends_read_count": 0, "int_page_from_other_read_user": 0, "int_page_from_other_read_count": 0, "feed_share_from_session_user": 0, "feed_share_from_session_cnt": 0, "feed_share_from_feed_user": 0, "feed_share_from_feed_cnt": 0, "feed_share_from_other_user": 0, "feed_share_from_other_cnt": 0 } ], "url": "https://mp.weixin.qq.com/s?__biz=MzUzMTkyMzU3NQ==&mid=100003398&idx=1&sn=bc04c7f9d3af38f277ca8af1dc83d767#rd" } 明显能看到26号的数据比25号的数据要少 [图片]
2023-10-30 - 已发布成功图文通过“获取成功发布列表”接口无法获取?
公众号appid:wxd704f1c3e04b447a 公众号名称:基恩士 已发布图文article_id:kpUgaLFoyhGLJ8f02rpOBf5nHlDFWNx9aaGKRKBr42ltglZ7zf2wGXOtqJmNw6-9 发布时间戳:1644376305 操作步骤: ①现通过微信官方接口“获取成功发布列表”无法获取到该图文信息,接口文档:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html [图片] ②但是通过微信官方接口“通过 article_id 获取已发布文章”却能获取到图文详情,接口文档:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_article_from_id.html [图片] 调用示例: [图片] 请问:这个已发布图文是被删除了吗?如果是被删除的图文调用“通过 article_id 获取已发布文章”接口应该返回错误码“53600”(Article ID 无效)[图片] 那么请问这种在发布列表中获取不到的图文,但是能通过article_id获取到图文详情的情况是什么原因产生的呢?
2022-09-14 - 静默授权报错 此公众号并没有这些scope的权限,错误码:10005?
公众号是已认证的服务号,并已授权我们第三方,复用公众号资质创建了一个小程序. 小程序appid:wxf23e06fd06170eb6 现在根据这个小程序appid构建oauth2授权链接: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf23e06fd06170eb6&redirect_uri=https%3A%2F%2Foss.dmartech.cn%2FmicroPage%2Fpage%2Ftest%2F77e7888e701194a3%2F625b7ae9-408e-43c1-9b8b-10f96c4e8037.html%3FappId%3Dwxf23e06fd06170eb6%26microId%3D424&response_type=code&scope=snsapi_base&state=STATE&component_appid=wx61fbaa1afeac1424#wechat_redirect 在微信打开报错如下: [图片] 之前使用时都是正常的,最近发现突然开始报错了,请问是什么原因导致的呢?
2022-08-10 - 小程序里能否使用代公众号发起网页授权的oauth2链接获取openid?
小程序是复用公众号资质创建的小程序,公众号是已认证的服务号,并已授权我们第三方。 小程序appid:wxf23e06fd06170eb6 现在根据这个小程序appid构建oauth2授权链接: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf23e06fd06170eb6&redirect_uri=https%3A%2F%2Foss.dmartech.cn%2FmicroPage%2Fpage%2Ftest%2F77e7888e701194a3%2F625b7ae9-408e-43c1-9b8b-10f96c4e8037.html%3FappId%3Dwxf23e06fd06170eb6%26microId%3D424&response_type=code&scope=snsapi_base&state=STATE&component_appid=wx61fbaa1afeac1424#wechat_redirect 在小程序中打开报错如下: [图片] 问题1:请问在小程序中是否能使用代公众号发起网页授权的oauth2链接获取openid?之前我们一直是能正常使用的,只是最近突然变成这样了,是网页授权这里改了什么逻辑吗? 问题2:由于小程序是复用公众号资质创建的小程序所以没有小程序后台,请问我们该如何排查权限相关的问题呢?
2022-08-09 - 小程序获取用户信息返回【48001,api unauthorized hint】
获取小程序用户信息,使用公众号的【获取用户基本信息(UnionID机制)】获取,接口返回【api unauthorized hint】,无法获取到用户信息。 接口地址:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN接口; 接口返回信息{"errcode":48001,"errmsg":"api unauthorized hint: [MDK9sa03744689!]"}; 有2个问题: 1、请问下是不是小程序不能用这个接口获取用户信息? 2、如果后台想根据openid获取用户信息,应该怎么做?
2018-04-17 - 【查询群发消息发送状态】根据群发时返回的msgid调用查询状态接口返回40059是什么原因?
操作步骤如下: 1.调用【根据OpenID列表群发】接口[图片] 微信返回信息:{"errcode":0,"errmsg":"send job submission success","msg_id":3147485395,"msg_data_id":2679473369} 2.根据返回的msg_id=“3147485395”调用【查询群发消息发送状态】接口 [图片] 微信返回信息: { "errcode": 40059, "errmsg": "invalid msg id rid: 6222e1a5-050fdd3a-321557ab" } 而且没有收到群发回调事件!!! [图片] 请问,这个群发是发送成功了吗?送达了多少人?为什么会返回40059呢? 操作时间点是:2022-03-04 22:28:02
2022-03-07 - 【事件推送群发结果】群发事件回调xml里两个Result中的ArticleIdx代表的含义是否一致?
官方文档:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html#7 [图片] 【问题1】如上图,<CopyrightCheckResult></CopyrightCheckResult>中的ArticleIdx 与 <ArticleUrlResult></ArticleUrlResult>中的ArticleIdx含义是否一致?是否都表示文章在多图文消息中的位置? [图片] 【问题2】什么情况下会返回<CopyrightCheckResult></CopyrightCheckResult>中的<ResultList></ResultList>?测试了好几个群发回调的事件ResultList都是空,而且群发设置的参数send_ignore_reprint=0。回调xml举例: <FromUserName><![CDATA[oUSyU5kl8s-ONpCGtnUpgpVRFV7A]]></FromUserName> <CreateTime>1640595411</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[MASSSENDJOBFINISH]]></Event> <MsgID>3147483997</MsgID> <Status><![CDATA[send success]]></Status> <TotalCount>32</TotalCount> <FilterCount>4</FilterCount> <SentCount>4</SentCount> <ErrorCount>0</ErrorCount> <CopyrightCheckResult> <Count>0</Count> <ResultList></ResultList> <CheckState>1</CheckState> </CopyrightCheckResult> <ArticleUrlResult> <Count>3</Count> <ResultList> <item> <ArticleIdx>1</ArticleIdx> <ArticleUrl><![CDATA[******]]></ArticleUrl> </item> <item> <ArticleIdx>2</ArticleIdx> <ArticleUrl><![CDATA[******]]></ArticleUrl> </item> <item> <ArticleIdx>3</ArticleIdx> <ArticleUrl><![CDATA[******]]></ArticleUrl> </item> </ResultList> </ArticleUrlResult> </xml>
2021-12-28 - 接收普通消息事件,图片消息中返回的PicUrl链接点开是一条白线是什么原因?
接收普通消息事件官方文档:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html [图片] 如图图片消息返回的PicUrl链接,有的人点开是图片,有的人点开是一条白线,有的人刚开始点开是图片,过一会再次点开就是白线,请问是什么原因导致的? 比如我们收到的图片事件中这个链接: http://mmbiz.qpic.cn/mmbiz_jpg/udaFdTCia1FHyg13eHFoAwMbCgm488RGYXS4icafhhFAMUEia7gtM9Amg8nPZbdp44FhWgd6HYNf6NaBWn63iajFAQ/0 点开白线的人截屏如图: [图片] 点开有图片的人截屏如图: [图片] 请问该事件返回的PicUrl失效的规则是什么?
2021-12-20 - 发布状态轮询接口有调用频次上限吗?如果有的话是多少?
发布状态轮询接口:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_status.html 请问该接口有调用上限吗?如果有的话是多少呢?
2021-12-08 - 客服消息接口能力调整后,当连续发生不同规则事件时发送限制如何覆盖?
[图片] 当连续发生多个事件时,客服消息发送限制将如何计算 情况1:扫描二维码 -> 用户发送消息,当前发送限制是1分钟内可发送3条,还是48小时内可发送20条? 情况2:用户发送消息 -> 使用客服消息接口下发了3条消息 -> 扫描二维码,当前发送限制是1分钟内可发送3条,还是48小时内可发送17条? 情况3:用户发送消息 -> 使用客服消息接口下发了3条消息 -> 取消关注公众号 -> 关注公众号,当前发送限制是1分钟内可发送3条,还是48小时内可发送17条?
2021-05-25 - 关于公众号客服消息自定义菜单、关注公众号、扫描二维码三个场景调整后只能在一分钟下发消息吗?
确认关于5月10号公众号客服消息调整 调整后自定义菜单、关注公众号、扫描二维码这三个场景只能在一分钟内下发客服消息吗,不再支持48小时?[图片]
2021-05-10