From 430d383b8d9a51e13381d5fc4e5cc2e565fc0357 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 10:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=8E=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=94=9F=E6=88=90=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/rest/aicode/getCode.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9d16f0f..389d9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /package-lock.json /zips/ +/aicode/ diff --git a/src/rest/aicode/getCode.js b/src/rest/aicode/getCode.js index bb170c4..c2d97b8 100644 --- a/src/rest/aicode/getCode.js +++ b/src/rest/aicode/getCode.js @@ -10,7 +10,7 @@ module.exports = { dbUtils.query(sql).then(res => { let info = res?.[0] if (info?.id) { - let path = `/home/deploy/node-service/aicode/${info.id}`, zipPath = `${path}/${info.id}.zip` + let path = `./aicode/${info.id}`, zipPath = `${path}/${info.id}.zip` generate(info, path).then(() => { fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`)