diff --git a/sf_base/commons/common.py b/sf_base/commons/common.py index 30c06b6d..32a05290 100644 --- a/sf_base/commons/common.py +++ b/sf_base/commons/common.py @@ -134,7 +134,7 @@ class PrintingUtils(models.AbstractModel): # 注册中文字体 font_paths = [ - "/usr/share/fonts/windows/simsun.ttc", # Windows系统宋体 + "/usr/share/fonts/chinese/simsun.ttc", # Windows系统宋体 "c:/windows/fonts/simsun.ttc", # Windows系统宋体另一个位置 "/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf", # Linux Droid字体 "/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc", # 文泉驿正黑 @@ -217,4 +217,5 @@ class PrintingUtils(models.AbstractModel): if os.path.exists(qr_temp_path): os.remove(qr_temp_path) if os.path.exists(output_temp_path): + os.remove(output_temp_path) os.remove(output_temp_path) \ No newline at end of file