MiraiGo icon indicating copy to clipboard operation
MiraiGo copied to clipboard

[bug] 在私人聊天收到回复时,当被回复的是图片消息,得到的ReplySeq是负数

Open Rehtt opened this issue 1 year ago • 2 comments

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

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

Rehtt avatar Sep 06 '22 07:09 Rehtt

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

不太好在MiraiGo中处理

wdvxdr1123 avatar Sep 11 '22 02:09 wdvxdr1123

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

不太好在MiraiGo中处理

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

Rehtt avatar Sep 16 '22 04:09 Rehtt