fix: 修复系统图标与操作日志映射

This commit is contained in:
Nixevol
2026-07-07 02:10:05 +08:00
parent 7c6b0bff4c
commit 98b4b8b079
13 changed files with 165 additions and 29 deletions
+2 -2
View File
@@ -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);