Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

读取群内发来的消息图片url,如果是使用转发发送图片,url会404 #488

Open
roiiiu opened this issue Jan 13, 2023 · 4 comments

Comments

@roiiiu
Copy link

roiiiu commented Jan 13, 2023

Node.js Version

18.13.0

Package(oicq) Version

latest

Login Protocol

Android

Bug Description (最好截图说明,你的文字描述可能无法准确传达信息)

这是手动发送的图url,正常
image
把这条信息转发到群里产生的url,404
image

Log Details (控制台日志,请提供包含前后一段时间内的)

No response

@dmlgzs
Copy link
Contributor

dmlgzs commented Jan 15, 2023

源消息可能是新 Electron QQ 发送的,这种图片没有上传到可以以 MD5 获取图片的服务器,不能直接转发
需要使用新版本中获取的新地址
#475

@roiiiu
Copy link
Author

roiiiu commented Jan 17, 2023

源消息可能是新 Electron QQ 发送的,这种图片没有上传到可以以 MD5 获取图片的服务器,不能直接转发
需要使用新版本中获取的新地址
#475

应该不是,因为我在安卓手机端自己发的图,然后自己转发到群里,转发那条信息的图片url就会404,私聊不会这样。

@roiiiu
Copy link
Author

roiiiu commented Jan 18, 2023

源消息可能是新 Electron QQ 发送的,这种图片没有上传到可以以 MD5 获取图片的服务器,不能直接转发 需要使用新版本中获取的新地址 #475

又试了一下 url404只会发生在 群内聊天的转发消息,并且转发消息是文字与图一起的

@dmlgzs
Copy link
Contributor

dmlgzs commented Jan 18, 2023

又试了一下 url404只会发生在 群内聊天的转发消息,并且转发消息是文字与图一起的

刚刚抓了下包确实有点问题,你可以参考下 Icalingua 的处理方法:https://github.com/Icalingua-plus-plus/Icalingua-plus-plus/blob/develop/icalingua/src/main/utils/processMessage.ts#L68-L71

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants