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

bot 发送消息的id与 回复消息中获取的replyid 出现不匹配 #454

Closed
jianmj opened this issue Nov 30, 2020 · 10 comments
Closed
Milestone

Comments

@jianmj
Copy link

jianmj commented Nov 30, 2020

环境信息
请根据实际使用环境修改以下信息
go-cqhttp版本: v0.9.31-fix1
运行环境: centos 7
连接方式: WS

bug内容
使用bot 发送一条消息 ,并记录这个消息id,使用qq回复 这条消息时,reply CQ码里读取的id与 发送时的id 偶尔存在 不匹配的情况
log 日志里显示 发送记录
image
读取到回复消息内容
image

相同消息内容的偶发性复现
image

复现方法
使用 send_group_msg 方法发送消息 ,消息内容
WsMan更新了作品 1130\nhttps://pixiv.net/i/86000405\n[CQ:image,file=file:////qq/file/c2361943c56b89c7e9723a5a64f8c2f6.jpg]

@Mrs4s
Copy link
Owner

Mrs4s commented Dec 2, 2020

关掉强制分片试试?

@jianmj
Copy link
Author

jianmj commented Dec 2, 2020

感谢回复 ,force_fragmented:false ,关闭分片后,模拟测试多次均未出现此问题了。

@jianmj jianmj closed this as completed Dec 2, 2020
@jianmj
Copy link
Author

jianmj commented Dec 3, 2020

关闭强制分片后 发送的消息 经常出现 被风控的情况 ,在分片情况下 是否有办法 通过 CQ码中的 reply id 获取到原始消息 ,或者 send_group_msg 能否返回 分片消息 的 所有消息 id, 我尝试使用 get_msg 也无法读取到

@jianmj jianmj reopened this Dec 3, 2020
@Mrs4s
Copy link
Owner

Mrs4s commented Dec 3, 2020

会尝试处理这个问题

@jianmj
Copy link
Author

jianmj commented Mar 4, 2021

image
已升级到 go-cqhttp-v0.9.40-fix3 ,问题还是会复现

@jianmj
Copy link
Author

jianmj commented Mar 4, 2021

image
已升级到 go-cqhttp-v0.9.40-fix3 ,问题还是会复现

#261

明白了,谢谢

@liliangshan
Copy link

v1.0.0-beta3,没有开分片照样ID不对,和上面的情况一样

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

4 participants
@Mrs4s @jianmj @liliangshan and others