mirror of
https://github.com/certd/certd.git
synced 2026-04-16 14:00:51 +08:00
chore:
This commit is contained in:
@@ -50,7 +50,7 @@ export class BasicSettingsController extends BaseController {
|
||||
const sysPublic = await this.getSysPublic();
|
||||
const installInfo = await this.getInstallInfo();
|
||||
let siteInfo = {};
|
||||
if (!isComm()) {
|
||||
if (isComm()) {
|
||||
siteInfo = await this.getSiteInfo();
|
||||
}
|
||||
const siteEnv = await this.getSiteEnv();
|
||||
|
||||
@@ -59,4 +59,9 @@ export class SysAccessController extends AccessController {
|
||||
async getAccessTypeDict() {
|
||||
return await super.getAccessTypeDict();
|
||||
}
|
||||
|
||||
@Post('/simpleInfo', { summary: 'sys:settings:view' })
|
||||
async simpleInfo(@Query('id') id: number) {
|
||||
return await super.simpleInfo(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user