mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore:
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user