mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-04-17 17:43:01 +08:00
Update wework_message.py
This commit is contained in:
@@ -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的接口内部实现来调用
|
result = wework._WeWork__send_sync(send_type.MT_WXCDN_DOWNLOAD_MSG, data) # 直接用wx_cdn_download的接口内部实现来调用
|
||||||
elif "file_id" in data["cdn"].keys():
|
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"]
|
file_id = data["cdn"]["file_id"]
|
||||||
result = wework.c2c_cdn_download(file_id, aes_key, file_size, file_type, save_path)
|
result = wework.c2c_cdn_download(file_id, aes_key, file_size, file_type, save_path)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user