[modify] file local server url

This commit is contained in:
Mark
2026-01-27 15:06:50 +08:00
parent 2694576a32
commit 28e6939884
4 changed files with 4 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ async def get_file_url(
try:
if permanent:
# Generate permanent URL (no expiration check)
server_url = f"http://{settings.SERVER_IP}:8000/api"
server_url = settings.FILE_LOCAL_SERVER_URL
url = f"{server_url}/storage/permanent/{file_id}"
return success(
data={