修改导出

This commit is contained in:
xxq
2026-06-06 19:33:29 +08:00
parent e906f0aeed
commit caa07e0b3f
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -368,8 +368,9 @@ class RainfallGridService:
# 返回相对路径(相对于FILE_STORE_DIR),统一使用正斜杠
relative_path = os.path.join(grid_dir, 'grid.png').replace('\\', '/')
self.logger.info(f"PNG图片已保存: {png_path.replace('\\', '/')}")
saved_path = png_path.replace('\\', '/')
self.logger.info(f"PNG图片已保存: {saved_path}")
return relative_path
except Exception as e: