From c1a8f1643a8da54b6f91113c33f6c68a0aca42c8 Mon Sep 17 00:00:00 2001 From: Hermes Date: Thu, 30 Jul 2026 14:49:19 +0800 Subject: [PATCH] fix: download URL uses file_path directly (/idfile/{id}.{ext}) --- wwwroot/knowledge_bases_list/file_list.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/file_list.dspy b/wwwroot/knowledge_bases_list/file_list.dspy index 3f2a749..3a46218 100644 --- a/wwwroot/knowledge_bases_list/file_list.dspy +++ b/wwwroot/knowledge_bases_list/file_list.dspy @@ -63,7 +63,7 @@ else: if f["status"] == "pending": sc = "#e6a23c"; st = "处理中" elif f["status"] == "error": sc = "#f56c6c"; st = "失败" - file_url = f["file_path"] if f["file_path"].startswith("/idfile/") else "/idfile" + f["file_path"] + file_url = f["file_path"] display_name = trunc_name(f["file_name"]) row = {