首页增加短剧推荐
This commit is contained in:
@@ -79,6 +79,16 @@ export async function POST(request: NextRequest) {
|
||||
adminConfig = refineConfig(adminConfig);
|
||||
// 更新配置文件
|
||||
await db.saveAdminConfig(adminConfig);
|
||||
|
||||
// 清除短剧视频源缓存(因为配置文件可能包含新的视频源)
|
||||
try {
|
||||
await db.deleteGlobalValue('duanju');
|
||||
console.log('已清除短剧视频源缓存');
|
||||
} catch (error) {
|
||||
console.error('清除短剧视频源缓存失败:', error);
|
||||
// 不影响主流程,继续执行
|
||||
}
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
message: '配置文件更新成功',
|
||||
|
||||
Reference in New Issue
Block a user