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

转发消息的时候图片会变成cq码 #89

Closed
maxzhang666 opened this issue Sep 25, 2023 · 10 comments
Closed

转发消息的时候图片会变成cq码 #89

maxzhang666 opened this issue Sep 25, 2023 · 10 comments
Labels
bug? The issue author think this is a bug need more info Need more infomation

Comments

@maxzhang666
Copy link

使用环境

  • 框架版本号:1.4.1
  • 运行环境:docker

bug描述
详细描述bug的内容
进行消息转发的时候图片会变成cq码

如何复现

e.Reply(e.Message.MessageBody);

错误截图或日志
image

@maxzhang666 maxzhang666 added the bug? The issue author think this is a bug label Sep 25, 2023
@maxzhang666
Copy link
Author

最开始是1.3.0的时候有这个情况,尝试升级1.4.1之后问题仍然存在

@Yukari316 Yukari316 added the need more info Need more infomation label Sep 25, 2023
@Yukari316
Copy link
Collaborator

无法复现,请检查gocq的上报格式或者图片链接是否合法
image
image

@maxzhang666
Copy link
Author

maxzhang666 commented Sep 25, 2023

gocqhttp里的消息肯定是错的了,gocqhttp用的是docker的dev版本
断点看到的cq码的图片地址就有异常,自己构造图片消息的话发送是正常的

把收到的MessageBody直接发出去就会有下面的问题

&被Unicode编码了
我是复读图片消息出现的
image
复现代码
image

@Yukari316
Copy link
Collaborator

Yukari316 commented Sep 28, 2023

image
image
复读图片也没出现问题啊
我这的gocq用的是dev分支最新的CI构建版本f16d72f
qsign为1.1.9的docker镜像

@maxzhang666
Copy link
Author

真是离谱

我在测测、、、、

@maxzhang666
Copy link
Author

maxzhang666 commented Oct 8, 2023

懵了、、、

image image

@maxzhang666
Copy link
Author

又去gocqhttp看了看 大概是机器人那边的兼容问题

我是Mac NTQQ发送的图片

Mrs4s/MiraiGo#341

@maxzhang666
Copy link
Author

非SDK问题,到这吧先

感谢

@Yukari316
Copy link
Collaborator

也有可能是图片格式的之类的问题,你可以去试试gocq ci的最新构建版本

@maxzhang666
Copy link
Author

也有可能是图片格式的之类的问题,你可以去试试gocq ci的最新构建版本

我这边测试MacQQ发送的图片转发有问题

手机QQ跟Win的QQ就正常、、、

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 need more info Need more infomation
Projects
None yet
Development

No branches or pull requests

2 participants