From 54e54e4c06c34161e0ae511f9d029ed1605d248c Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 28 Nov 2022 11:15:01 +0800 Subject: [PATCH] =?UTF-8?q?(*)debug=20=E4=B8=83=E7=89=9B=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8D=9F=E5=9D=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 4 ++-- web/routes/attachment/index.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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);