更新gitignore配置,忽略public/files目录中的动态图片文件
3
.gitignore
vendored
@ -20,6 +20,9 @@ frontend/.env.test
|
||||
frontend/.env.production
|
||||
frontend/public/files/
|
||||
|
||||
# Jingrow Framework 前端
|
||||
apps/jingrow/frontend/public/files/
|
||||
|
||||
# 忽略名为 test 的文件夹
|
||||
test/
|
||||
.cursor/
|
||||
|
||||
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 745 KiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 938 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 985 KiB |
@ -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
|
||||
|
||||
|
||||