调整低代码平台生成文件的路径

This commit is contained in:
aixianling
2023-02-13 10:42:25 +08:00
parent 8b727839fa
commit 430d383b8d
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/node_modules/
/package-lock.json
/zips/
/aicode/

View File

@@ -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}`)