修正私人影库关闭后还能搜索到私人影库的视频和播放

This commit is contained in:
mtvpls
2025-12-25 01:02:22 +08:00
parent 35fc89b33e
commit b0da4e90e7
10 changed files with 74 additions and 18 deletions
+8 -2
View File
@@ -43,9 +43,15 @@ export async function POST(request: NextRequest) {
const config = await getConfig();
const openListConfig = config.OpenListConfig;
if (!openListConfig || !openListConfig.URL || !openListConfig.Username || !openListConfig.Password) {
if (
!openListConfig ||
!openListConfig.Enabled ||
!openListConfig.URL ||
!openListConfig.Username ||
!openListConfig.Password
) {
return NextResponse.json(
{ error: 'OpenList 未配置' },
{ error: 'OpenList 未配置或未启用' },
{ status: 400 }
);
}