This commit is contained in:
1 parent
98f846d630
commit
ff3a2f9476
1 file changed
+1
-3
+1
-3
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user