diff --git a/.vscode/launch.json b/.vscode/launch.json index f060cb0..3eab84f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,7 @@ "NODE_ENV": "development" }, "args": [ - "-p", "5700", + "--port", "5700", "-u","http://localhost:4700", "--apiHrUrl", "http://localhost:4700", // 测试 @@ -21,7 +21,7 @@ "--qnsk", "w6j2ixR_i-aelc6I7S3HotKIX-ukMzcKmDfH6-M5", "--qnbkt", "pep-process-report", "--qndmn", "https://pepsource.anxinyun.cn", - "--wkys", "http://10.8.30.109:14000" + "--pmrs", "http://10.8.30.109:14000" ] }, { diff --git a/web/routes/attachment/index.js b/web/routes/attachment/index.js index b289c62..5f31761 100644 --- a/web/routes/attachment/index.js +++ b/web/routes/attachment/index.js @@ -35,6 +35,7 @@ module.exports = { const { filename } = ctx.request.query; const fkey = decodeURI(ctx.path.slice(fetchUrl.length + 1)).replace(/\.json$/, '.js'); const publicDownloadUrl = await app.fs.attachment.download(fkey); + console.log("publicDownloadUrl: ", publicDownloadUrl); ctx.status = 200; if (filename) ctx.attachment(filename); ctx.body = request.get(publicDownloadUrl);