mirror of https://github.com/certd/certd
chore:
parent
dd2b0a1595
commit
f38b33ea39
|
@ -1,6 +1,6 @@
|
||||||
import { Config, Controller, Get, Inject, Provide } from '@midwayjs/core';
|
import { Config, Controller, Get, Inject, Provide } from '@midwayjs/core';
|
||||||
import { BaseController, Constants, SysHeaderMenus, SysInstallInfo, SysPublicSettings, SysSettingsService, SysSiteEnv, SysSiteInfo } from '@certd/lib-server';
|
import { BaseController, Constants, SysHeaderMenus, SysInstallInfo, SysPublicSettings, SysSettingsService, SysSiteEnv, SysSiteInfo } from '@certd/lib-server';
|
||||||
import { AppKey, getPlusInfo } from '@certd/plus-core';
|
import { AppKey, getPlusInfo, isComm } from '@certd/plus-core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -49,7 +49,10 @@ export class BasicSettingsController extends BaseController {
|
||||||
async getAllSettings() {
|
async getAllSettings() {
|
||||||
const sysPublic = await this.getSysPublic();
|
const sysPublic = await this.getSysPublic();
|
||||||
const installInfo = await this.getInstallInfo();
|
const installInfo = await this.getInstallInfo();
|
||||||
const siteInfo = await this.getSiteInfo();
|
let siteInfo = {};
|
||||||
|
if (!isComm()) {
|
||||||
|
siteInfo = await this.getSiteInfo();
|
||||||
|
}
|
||||||
const siteEnv = await this.getSiteEnv();
|
const siteEnv = await this.getSiteEnv();
|
||||||
const plusInfo = await this.plusInfo();
|
const plusInfo = await this.plusInfo();
|
||||||
const headerMenus = await this.getHeaderMenus();
|
const headerMenus = await this.getHeaderMenus();
|
||||||
|
|
Loading…
Reference in New Issue