From 7e5c5a6b67e37f2923f73471ed3b6ca47fe751b4 Mon Sep 17 00:00:00 2001 From: konpoku <543329382@qq.com> Date: Fri, 22 May 2026 15:38:03 +0800 Subject: [PATCH] fix bug --- src/routes/code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/code.ts b/src/routes/code.ts index 35c5564d..87dec98f 100644 --- a/src/routes/code.ts +++ b/src/routes/code.ts @@ -334,7 +334,7 @@ router.post("/compile-finish", async (req, res) => { if (compile_status === "Completed") { const key = `${cosPath}/${code_id}`; - const localFilePath = `${base_directory}/${contest_name}/code/${team_id}/${code_id}/output/capi`; + const localFilePath = `${base_directory}/${contest_name}/code/${team_id}/${code_id}/output/${code_id}`; const found = await waitForFile(localFilePath); if (!found) { throw new Error(`File not found: ${localFilePath}`);