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

支持记录各种消息每日发送的次数上限,以及获取头像昵称各种敏感操作的次数 #60

Open
leochen-g opened this issue Oct 8, 2021 · 0 comments

Comments

@leochen-g
Copy link

Is your feature request related to a problem? Please describe.
在使用wechaty的过程中,发现会有一些方法在调用一定次数后会被微信官方提醒限制或者直接方法报错,例如群消息发送过多,或者获取群成员头像过多次都会导致这个问题,那么是否可以在不同的方法中记录一下主动调用方法的次数,在排查问题的时候可以打印一下各个方法的调用次数上限,这样就可以在开发功能的时候做个参考

Describe the solution you'd like

不知道是否可以在一些敏感方法中统一设置一下拦截器,根据不同的事件类型来存储一份调用次数的日志文件,在需要的时候可以调取。比如发送消息,发送图片,发送小程序,发送名片... 获取头像,获取群成员,获取好友列表等等事件

Describe alternatives you've considered
目前是自己封装了一层say方法进行记录,但是记录的并不是很全,如果内置的话或许覆盖面会更大点

[enhancement]

@huan huan transferred this issue from wechaty/wechaty Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant