This commit is contained in:
caiwx86 2023-03-31 19:58:56 +08:00
parent a7cfeae7eb
commit ea7005356c

View File

@ -25,9 +25,7 @@ class htmlUtils:
return file_path return file_path
if os.path.exists(file_path): if os.path.exists(file_path):
if type == "read": if type == "read":
print(f"读取cache: {file_path}") with open(file_path,"r",encoding="utf-8") as fs: return fs.read()
with open(file_path,"r",encoding="utf-8") as fs:
return fs.read()
return file_path return file_path
else: else:
return None return None