This commit is contained in:
aozhiwei 2024-07-21 10:34:34 +08:00
parent 488fba51d0
commit e625a27315

View File

@ -7,15 +7,17 @@ class CfgChecker {
constructor() { constructor() {
this.projHash = {}; this.projHash = {};
this.addProj(constant.PROJ_WEB3BCSPIDER);
} }
async init() { async init() {
await this.addProj(constant.PROJ_WEB3BCSPIDER);
} }
addProj(projName) { async addProj(projName, confDir, resDir) {
console.log(projName); const proj = new(require('./projects/' + projName));
proj.confDir = confDir;
proj.resDir = resDir;
console.log('addProj ', projName, confDir, resDir);
} }
} }