From 4c4a46bfbe127fc2d8c729c1cba338c7afbbeef3 Mon Sep 17 00:00:00 2001 From: vision Date: Mon, 22 Jan 2024 13:38:11 +0800 Subject: [PATCH] Update wework_message.py --- channel/wework/wework_message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channel/wework/wework_message.py b/channel/wework/wework_message.py index 17e27f4..0d9e96e 100644 --- a/channel/wework/wework_message.py +++ b/channel/wework/wework_message.py @@ -64,7 +64,10 @@ def cdn_download(wework, message, file_name): } result = wework._WeWork__send_sync(send_type.MT_WXCDN_DOWNLOAD_MSG, data) # 直接用wx_cdn_download的接口内部实现来调用 elif "file_id" in data["cdn"].keys(): - file_type = 2 + if message["type"] == 11042: + file_type = 2 + elif message["type"] == 11045: + file_type = 5 file_id = data["cdn"]["file_id"] result = wework.c2c_cdn_download(file_id, aes_key, file_size, file_type, save_path) else: