浏览代码

Merge pull request #1698 from 6vision/6vision-patch-1

Update wework_message.py
master
zhayujie GitHub 10 个月前
父节点
当前提交
644bd4a106
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      channel/wework/wework_message.py

+ 4
- 1
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:


正在加载...
取消
保存