mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
23 lines
798 B
TypeScript
23 lines
798 B
TypeScript
|
|
import { Autoload, Init, Inject, Scope, ScopeEnum } from '@midwayjs/core';
|
||
|
|
import { logger } from '@certd/pipeline';
|
||
|
|
import { SysInstallInfo, SysSettingsService } from '@certd/lib-server';
|
||
|
|
import { getVersion } from '../../utils/version.js';
|
||
|
|
|
||
|
|
@Autoload()
|
||
|
|
@Scope(ScopeEnum.Singleton)
|
||
|
|
export class AutoZPrint {
|
||
|
|
@Inject()
|
||
|
|
sysSettingsService: SysSettingsService;
|
||
|
|
|
||
|
|
@Init()
|
||
|
|
async init() {
|
||
|
|
const installInfo: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
|
||
|
|
logger.info('=========================================');
|
||
|
|
logger.info('当前站点ID:', installInfo.siteId);
|
||
|
|
const version = await getVersion();
|
||
|
|
logger.info(`当前版本:${version}`);
|
||
|
|
logger.info('服务启动完成');
|
||
|
|
logger.info('=========================================');
|
||
|
|
}
|
||
|
|
}
|