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

接收图片调用wx_cdn_download一直报错 #5

Open
keysaim opened this issue Oct 12, 2023 · 6 comments
Open

接收图片调用wx_cdn_download一直报错 #5

keysaim opened this issue Oct 12, 2023 · 6 comments

Comments

@keysaim
Copy link

keysaim commented Oct 12, 2023

一直报这个错:
2023-10-12 17:49:34,889 - WeWorkInstance - DEBUG - on recv message: {'data': {'error_code': -2}, 'extend': '3a9db1c8-c533-3ca6-994b-571c3dcd5882', 'type': 11171}

代码如下:

            ret = wework.wx_cdn_download(cdn['url'], cdn['auth_key'], cdn['size'], local_path)

我看ntwork好像有0.1.3版本,不知道是不是版本的问题,我下载的是你提供的0.1.0

@Kaguya233qwq
Copy link
Owner

image

使用c2c类型进行下载,图片类型file_type=2

@keysaim
Copy link
Author

keysaim commented Oct 14, 2023

image 使用c2c类型进行下载,图片类型file_type=2

谢谢回复哈,但是我不是下载语音啊,也可以通过c2c下载吗?

@Kaguya233qwq
Copy link
Owner

Kaguya233qwq commented Oct 14, 2023 via email

@keysaim
Copy link
Author

keysaim commented Oct 14, 2023

改变type的值即可。具体是哪些数值对应什么文件类型可以自己0-9枚举

---原始邮件--- 发件人: "Neil @.> 发送时间: 2023年10月14日(周六) 晚上8:26 收件人: @.>; 抄送: @.@.>; 主题: Re: [Kaguya233qwq/WeWorkBot] 接收图片调用wx_cdn_download一直报错 (Issue #5) 使用c2c类型进行下载,图片类型file_type=2 谢谢回复哈,但是我不是下载语音啊,也可以通过c2c下载吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

好的,感谢~

@Yukino0912
Copy link

那请问图片的file_id怎么得到呢

@keysaim
Copy link
Author

keysaim commented Nov 10, 2023

那请问图片的file_id怎么得到呢

消息体里面有啊

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

3 participants