This commit is contained in:
1 parent
09d16954bc
commit
5915ed0c5b
1 file changed
+2
-2
+2
-2
@@ -33,10 +33,10 @@ def get_message_resource(client, message_id, file_key, file_type, save_dir):
|
|||||||
return
|
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 = open(file_path, "wb")
|
||||||
f.write(response.file.read())
|
f.write(response.file.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|||||||
Reference in new issue
Block a user