feat: 支持后台配置备案信息
This commit is contained in:
@@ -62,6 +62,7 @@ async function ensureSettings(): Promise<void> {
|
||||
appName: process.env.APP_NAME || '艺术品溯源平台',
|
||||
logRetentionDays: process.env.LOG_RETENTION_DAYS || '365',
|
||||
watermarkText,
|
||||
filingInfo: '备案信息待补充',
|
||||
};
|
||||
for (const [key, value] of Object.entries(defaults)) {
|
||||
await prisma.systemSetting.upsert({ where: { key }, update: {}, create: { key, value } });
|
||||
|
||||
Reference in New Issue
Block a user