add download message image
continuous-integration/drone/push Build is passing

This commit is contained in:
jianxin committed 2024-01-17 17:35:57 +08:00
1 parent 09d16954bc
commit 5915ed0c5b
1 file changed
+2 -2
+2 -2
View File
@@ -33,10 +33,10 @@ def get_message_resource(client, message_id, file_key, file_type, save_dir):
return
# 处理业务结果
lark.logger.info(lark.JSON.marshal(response.data, indent=4))
# lark.logger.info(lark.JSON.marshal(response.data, indent=4))
# 处理业务结果
file_path = os.path.join(save_dir, response.file_name)
file_path = os.path.join(save_dir, file_key)
f = open(file_path, "wb")
f.write(response.file.read())
f.close()