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

[Bug]: 为什么管理员在群内设精事件会上报两次? #2105

Open
4 tasks done
ilihu opened this issue Apr 19, 2023 · 1 comment
Open
4 tasks done

[Bug]: 为什么管理员在群内设精事件会上报两次? #2105

ilihu opened this issue Apr 19, 2023 · 1 comment
Labels
bug? The issue author think this is a bug

Comments

@ilihu
Copy link

ilihu commented Apr 19, 2023

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述教程和 "提问前需知"
  • 我已经使用 dev分支版本 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

go-cqhttp 版本

v1.0.1

运行环境

Linux

运行架构

AMD64

连接方式

HTTP

使用协议

0 | iPad

重现步骤

我测试了两个群,用管理员权限在群内设精(或移精)一次,每次bot都会上报两次 "essence" 事件

{'post_type': 'notice', 'notice_type': 'essence', 'time': 1681897549, 'self_id': 123123, 'sub_type': 'add', 'sender_id': 456456, 'operator_id': 789789, 'message_id': -1846665849, 'group_id': 666666}
{'post_type': 'notice', 'notice_type': 'essence', 'time': 1681897549, 'self_id': 123123, 'sub_type': 'add', 'group_id': 666666, 'sender_id': 456456, 'operator_id': 789789, 'message_id': -1846665849}

我不清楚是我会这样,还是使用这个版本的gocq都会有以上情况。不是框架的问题,这个事件是在gocq运行的终端里输出的。

期望的结果是什么?

上报一次 "essence" 事件也行,两次也行。我只是想确定这是不是正常的

实际的结果是什么?

上报两次设精,移精事件

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

No response

@ilihu ilihu added the bug? The issue author think this is a bug label Apr 19, 2023
@ilihu
Copy link
Author

ilihu commented Apr 24, 2023

你最好是在提交issue

而且两行的上报字段项也不一样啊,为什么不正常

啥?字段项哪里不一样?
你测试过吗? 反向HTTP , 然后你用管理员权限在群里设精试试,看看是不是bot会收到两次上报"essence" 事件,还是说只有我是这种情况。我没开玩笑啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug
Projects
None yet
Development

No branches or pull requests

1 participant