添加openapi模块

This commit is contained in:
hanhh
2021-08-26 19:01:39 +08:00
parent 7739cef7b8
commit 1e58254f4c
12 changed files with 730 additions and 47 deletions
+4 -6
View File
@@ -23,6 +23,8 @@ const configString = 'config sample crontab shareCode diy';
const dbPath = path.join(rootPath, 'db/');
const cronDbFile = path.join(rootPath, 'db/crontab.db');
const envDbFile = path.join(rootPath, 'db/env.db');
const appDbFile = path.join(rootPath, 'db/app.db');
const configFound = dotenv.config({ path: confFile });
if (envFound.error) {
@@ -57,6 +59,7 @@ export default {
dbPath,
cronDbFile,
envDbFile,
appDbFile,
configPath,
scriptPath,
samplePath,
@@ -67,10 +70,5 @@ export default {
'crontab.list',
'env.sh',
],
writePathList: [
'/ql/scripts/',
'/ql/config/',
'/ql/jbot/',
'/ql/bak/',
],
writePathList: ['/ql/scripts/', '/ql/config/', '/ql/jbot/', '/ql/bak/'],
};
+1 -1
View File
@@ -86,7 +86,7 @@ export function createRandomString(min: number, max: number): string {
'Y',
'Z',
];
const special = ['-', '_', '#'];
const special = ['-', '_'];
const config = num.concat(english).concat(ENGLISH).concat(special);
const arr = [];