diff --git a/video-gen-api/app/api/v1/admin.py b/video-gen-api/app/api/v1/admin.py index 12961243..eee15906 100644 --- a/video-gen-api/app/api/v1/admin.py +++ b/video-gen-api/app/api/v1/admin.py @@ -1081,8 +1081,8 @@ async def update_system_config( config = result.scalar_one_or_none() if not config: raise HTTPException(status_code=404, detail="配置不存在") - config.value = req.value - await db.flush() + config.value = str(req.value) + await db.commit() return config