更新gitignore配置,忽略public/files目录中的动态图片文件

This commit is contained in:
jingrow 2025-10-25 22:16:42 +08:00
parent ffe872a182
commit 33dd3ffc6e
19 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -20,6 +20,9 @@ frontend/.env.test
frontend/.env.production
frontend/public/files/
# Jingrow Framework 前端
apps/jingrow/frontend/public/files/
# 忽略名为 test 的文件夹
test/
.cursor/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 745 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 938 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 985 KiB

View File

@ -61,7 +61,7 @@ def download_image_to_local(image_url: str, filename: str = None) -> dict:
filename = "".join(c for c in filename if c.isalnum() or c in "._-")
# 构建本地文件路径
public_dir = Path(__file__).parent.parent.parent.parent.parent.parent / "frontend" / "public" / "files"
public_dir = Path(__file__).parent.parent.parent.parent.parent / "apps" / "jingrow" / "frontend" / "public" / "files"
ensure_dir(public_dir)
local_path = public_dir / filename