修复无法保存更多推荐数据源

This commit is contained in:
mtvpls
2026-01-07 20:01:18 +08:00
parent 71da826b69
commit b61db02478
6 changed files with 44 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ export async function POST(request: NextRequest) {
TMDBApiKey,
TMDBProxy,
BannerDataSource,
RecommendationDataSource,
PansouApiUrl,
PansouUsername,
PansouPassword,
@@ -82,6 +83,7 @@ export async function POST(request: NextRequest) {
TMDBApiKey?: string;
TMDBProxy?: string;
BannerDataSource?: string;
RecommendationDataSource?: string;
PansouApiUrl?: string;
PansouUsername?: string;
PansouPassword?: string;
@@ -123,6 +125,7 @@ export async function POST(request: NextRequest) {
(TMDBApiKey !== undefined && typeof TMDBApiKey !== 'string') ||
(TMDBProxy !== undefined && typeof TMDBProxy !== 'string') ||
(BannerDataSource !== undefined && typeof BannerDataSource !== 'string') ||
(RecommendationDataSource !== undefined && typeof RecommendationDataSource !== 'string') ||
typeof EnableComments !== 'boolean' ||
(CustomAdFilterCode !== undefined && typeof CustomAdFilterCode !== 'string') ||
(CustomAdFilterVersion !== undefined && typeof CustomAdFilterVersion !== 'number') ||
@@ -173,6 +176,7 @@ export async function POST(request: NextRequest) {
TMDBApiKey,
TMDBProxy,
BannerDataSource,
RecommendationDataSource,
PansouApiUrl,
PansouUsername,
PansouPassword,