feat(admin+api): 列表页子路由重构、结算历史与充值截图清理

赛事/代理管理从表格展开改为子路由详情页;结算页增加预览弹窗与历史记录;媒体库支持截图存储统计与自动/手动清理;Player 端充值截图压缩为 WebP 300KB。
This commit is contained in:
2026-06-22 12:28:25 +08:00
parent 499522f3fb
commit 648c314e23
38 changed files with 3298 additions and 1147 deletions

View File

@@ -263,4 +263,31 @@ export class SystemConfigService {
}
return this.getInboxNotifySettings();
}
async getDepositScreenshotCleanupConfig(): Promise<{ enabled: boolean; keepDays: number }> {
const enabled = await this.getBoolean('deposit.cleanup.enabled', false);
const keepDays = await this.getInt('deposit.cleanup.keep_days', 180);
return { enabled, keepDays };
}
async updateDepositScreenshotCleanupConfig(data: { enabled?: boolean; keepDays?: number }) {
if (data.enabled !== undefined) {
await this.setBoolean(
'deposit.cleanup.enabled',
data.enabled,
'是否开启定时清理充值截图',
);
}
if (data.keepDays !== undefined) {
if (!Number.isInteger(data.keepDays) || data.keepDays <= 0) {
throw new Error('keepDays must be a positive integer');
}
await this.setInt(
'deposit.cleanup.keep_days',
data.keepDays,
'充值截图保留天数',
);
}
return this.getDepositScreenshotCleanupConfig();
}
}