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() {
this.projHash = {};
this.addProj(constant.PROJ_WEB3BCSPIDER);
}
async init() {
await this.addProj(constant.PROJ_WEB3BCSPIDER);
}
addProj(projName) {
console.log(projName);
async addProj(projName, confDir, resDir) {
const proj = new(require('./projects/' + projName));
proj.confDir = confDir;
proj.resDir = resDir;
console.log('addProj ', projName, confDir, resDir);
}
}