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

This commit is contained in:
jianxin committed 2024-01-17 18:14:50 +08:00
1 parent 98f846d630
commit ff3a2f9476
1 file changed
+1 -3
+1 -3
View File
@@ -31,9 +31,7 @@ def get_message_resource(client, message_id, file_key, file_type, save_dir):
# 处理业务结果
# 处理业务结果
file_path = os.path.join(save_dir, file_key)
file_path = os.path.join(save_dir, file_key + ".png")
with open(file_path, "wb") as f:
f.write(response.file.read())