Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信推送消息,缺少一个取消授权的类型RequestMessageType #2939

Open
5 of 31 tasks
honggu025 opened this issue Oct 27, 2023 · 2 comments
Open
5 of 31 tasks

Comments

@honggu025
Copy link

honggu025 commented Oct 27, 2023

此版块专为反馈 bug 及提交需求服务,不负责解答开发问题,请勿发表开发问题,
如果您需要这方面的帮助,请移步问答社区https://weixin.senparc.com/QA

问题描述

偶尔发现的问题,在做oath2测试的时候,手动取消用户对公众号获取用户信息(scope为snsapi_userinfo)的授权,微信提示“将会在24小时内推送给公众号删除用户信息”,这应该是一个特殊的事件类型,且没有在文档里提到过,此时,服务端接收消息的模块CustomMessageHandler.DefaultResponseMessage抛出异常,Senparc.NeuChar.MsgType未定义。

重现问题步骤(如果可以)
  1. 引导用户访问授权页面,并授权
  2. 用户手动取消授权
微信官方文档 URL
微信官方文档快照(直接复制关键内容到下方)
发现问题的模块
  • Senparc.Weixin 版本:
  • Senparc.Weixin.MP 版本:
  • Senparc.Weixin.MP.MVC 版本:
  • Senparc.Weixin.Open 版本:
    - [ ] Senparc.Weixin.QY 版本:
  • Senparc.Weixin.Work 版本:
  • Senparc.Weixin.WxOpen 版本:
  • Senparc.Weixin.Cache.Redis 版本:
  • Senparc.Weixin.Cache.Memcached 版本:
  • Senparc.Weixin.Tenpay 版本:
  • Senparc.WebSocket 版本:
  • 其他模块:
模块对应的 .net 版本
  • .net 3.5
  • .net 4.0
  • .net 4.5+
  • .net standard 2.0 / 2.1
  • .net core 1.x
  • .net core 2.x
  • .net core 3.x
  • .net 5.x / 6.x
  • [] .net 7.0
开发环境
  • Visual Studio 2019
  • Visual Studio 2022
  • Visual Studio Code
  • 其他:
缓存环境
  • 服务器内存缓存(默认)
  • Redis 版本:
  • Memcached 版本:
  • 其他:
系统环境
  • Windows,版本:
  • Linux,版本:
  • Mac,版本:
  • 其他:
联系方式

Email:

(也可将问题地址及联系方式发送到 zsu@senparc.com

发布问题后,请保持对 issue 的关注,有时会有需要进一步沟通的信息,很长时间内没有得到答复的 issue 将被关闭。

@JeffreySu
Copy link
Owner

@honggu025 能发一下收到的 XML 日志中的内容吗?

@honggu025
Copy link
Author

@JeffreySu
抱歉,刚看到,我又做了一遍测试,找到了消息,星号都是我的id,我手动隐藏了,不是原文。
<?xml version="1.0" encoding="utf-8"?> <xml> <ToUserName><![CDATA[******]]></ToUserName> <FromUserName><![CDATA[******]]></FromUserName> <CreateTime>1698659582</CreateTime> <MsgType><![CDATA[event]]></MsgType> <Event><![CDATA[user_authorization_revoke]]></Event> <OpenID><![CDATA[******]]></OpenID> <AppID><![CDATA[******]]></AppID> <RevokeInfo><![CDATA[205]]></RevokeInfo> </xml>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants