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] 在私人聊天收到回复时,当被回复的是图片消息,得到的ReplySeq是负数 #296

Open
Rehtt opened this issue Sep 6, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Rehtt
Copy link

Rehtt commented Sep 6, 2022

在私聊时 用户 发送了一张图片,机器人 得到的消息ID是正常的。但是当 用户 回复这张图片时,机器人 得到的ReplySeq却是负数。

感觉应该是溢出了,因为图片消息正常的ID和ReplySeq绝对值相加正好是65536

@wdvxdr1123
Copy link
Collaborator

@Rehtt
Copy link
Author

Rehtt commented Sep 16, 2022

See: https://github.com/Mrs4s/go-cqhttp/blob/8389d9195d9cd63f83a0baf82c749dbac34f0371/coolq/cqcode.go#L90-L94

不太好在MiraiGo中处理

我目前的解决办法是判断如果是负数就和65536相加,得出的值就正常了

@fumiama fumiama added bug Something isn't working help wanted Extra attention is needed labels May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants