feat:webui-test

This commit is contained in:
手瓜一十雪
2024-05-07 21:17:31 +08:00
parent 2ab91e363f
commit 5d77f50160
5 changed files with 193 additions and 167 deletions

View File

@@ -14,7 +14,7 @@ program
.option('-q, --qq <type>', 'QQ号')
.parse(process.argv);
//InitWebUi();
InitWebUi();
const cmdOptions = program.opts();
// console.log(process.argv);

View File

@@ -49,6 +49,7 @@ export async function WebUIConfig(): Promise<WebUiConfig> {
// 修正端口占用情况
const [err, data] = await tryUsePort(parsedConfig.port).then(data => [null, data as number]).catch(err => [err, null]);
config.port = data;
if (err) {
//一般没那么离谱 如果真有这么离谱 考虑下 向外抛出异常
}