Commit 8d3dfa82 by 赵增煜

bug修复

parent 691eca80
...@@ -49,7 +49,7 @@ def detail(id): ...@@ -49,7 +49,7 @@ def detail(id):
if path_parts[0].endswith(':') and not path_parts[0].endswith(os.sep): if path_parts[0].endswith(':') and not path_parts[0].endswith(os.sep):
path_parts[0] += os.sep path_parts[0] += os.sep
data.file_path = os.path.join(*path_parts) data.file_path = os.path.join(*path_parts)
with open('./tmp/pdf/4.pdf', 'rb') as file: with open(data.file_path, 'rb') as file:
pdf_data = file.read() pdf_data = file.read()
# 将二进制数据编码为Base64字符串 # 将二进制数据编码为Base64字符串
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment