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

【求助】3.9.5.81-v10版本下载附件失败 #317

Closed
drag0n-app opened this issue Nov 7, 2023 · 6 comments
Closed

【求助】3.9.5.81-v10版本下载附件失败 #317

drag0n-app opened this issue Nov 7, 2023 · 6 comments

Comments

@drag0n-app
Copy link

1、在群中发了一条图片消息,hook消息显示"msgId"为7559968399427434000
2、POST数据{"msgId":7559968399427434000}到接口/api/downloadAttach
3、返回{ code: -2, data: null, msg: "success" }

请问是什么原因?

@vincentlin7
Copy link

还没有下载完,间隔一段时间再post

@drag0n-app
Copy link
Author

还没有下载完,间隔一段时间再post

我每次暂停2s,循环100次post接口,还是下载不成功

@ttttupup
Copy link
Owner

ttttupup commented Nov 8, 2023

这个msgid应该是错的,注意一下精度问题。

@drag0n-app
Copy link
Author

这个msgid应该是错的,注意一下精度问题。

是这个原因,谢谢提醒!
BTW:code等于0成功,不是文档说的大于0成功

@Ostaer
Copy link

Ostaer commented Feb 6, 2024

我抓了一条数据,
1、hook返回的msgId是76659428408562600
2、本地库里查到的是 76659428408562587
用1调用下载接口返回失败{"code":-2,"result":"OK"}
用2调用下载接口返回成功{"code":0,"result":"OK"}
这俩值很相近,很像四舍五入的。。

@ttttupup
Copy link
Owner

ttttupup commented Feb 6, 2024

浮点数精度问题

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

No branches or pull requests

4 participants