Closed ghost closed 2 years ago
v1.0.0-rc1
Windows (64)
AMD64
WebSocket (正向)
0 | iPad
发送消息 [CQ:image,file=file:///F:\a#\a.jpg,cache=1]
成功发送图片,尝试过将'#'符号替换成实体字符发送 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 得到的也是转换错误 转换CQ码 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 时出现错误: file not found 将原样发送.
转换CQ码 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 时出现错误: file not found 将原样发送.
No response
期望的结果是什么?中的实体字符被转义了,,,,,我上传图片吧
成功复现
证实由 github.com/Mrs4s/go-cqhttp/tree/dev/coolq/cqcode.go#L1175 引起
辛苦了
根据 #1436 的讨论和 onebot标准, 需要对#进行转义(URL转义): # -> %23
请确保您已阅读以上注意事项,并勾选下方的确认框。
go-cqhttp 版本
v1.0.0-rc1
运行环境
Windows (64)
运行架构
AMD64
连接方式
WebSocket (正向)
使用协议
0 | iPad
重现步骤
发送消息 [CQ:image,file=file:///F:\a#\a.jpg,cache=1]
期望的结果是什么?
成功发送图片,尝试过将'#'符号替换成实体字符发送 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 得到的也是转换错误 转换CQ码 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 时出现错误: file not found 将原样发送.
实际的结果是什么?
转换CQ码 [CQ:image,file=file:///F:\a#\a.jpg,cache=1] 时出现错误: file not found 将原样发送.
简单的复现代码/链接(可选)
No response
日志记录(可选)
No response
补充说明(可选)
No response