fix: 修复系统图标与操作日志映射
This commit is contained in:
@@ -60,7 +60,7 @@ export class SettingsService {
|
||||
const rows = await this.prisma.systemSetting.findMany();
|
||||
const map: Record<string, string> = {
|
||||
appName: this.config.get<string>('appName') || '',
|
||||
appIconUrl: '/app-icon.svg',
|
||||
appIconUrl: '',
|
||||
logRetentionDays: String(this.config.get<number>('logRetentionDays') || 365),
|
||||
operationLogRetentionDays: '365',
|
||||
watermarkText: this.config.get<string>('watermarkText') || '仅供溯源核验使用',
|
||||
@@ -93,7 +93,7 @@ export class SettingsService {
|
||||
const value = SECRET_KEYS.has(r.key) ? await this.decryptSecret(r.value) : r.value;
|
||||
map[r.key] = r.key === 'appName' && value === '艺术品可信溯源与认证平台' ? '艺术品溯源平台' : value;
|
||||
}
|
||||
if (!map.appIconUrl) map.appIconUrl = '/app-icon.svg';
|
||||
if (map.appIconUrl === '/app-icon.svg') map.appIconUrl = '';
|
||||
if (maskSecrets) {
|
||||
if (map.ossAccessKeySecret) map.ossAccessKeySecret = this.maskSecret(map.ossAccessKeySecret);
|
||||
if (map.tianheAppKey) map.tianheAppKey = this.maskSecret(map.tianheAppKey);
|
||||
|
||||
Reference in New Issue
Block a user