From 46ac187d96380ed2d5c0a38a23626ddc4a46a31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Thu, 26 Feb 2026 15:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0web?= =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/routes/setting/getAiModelMap.ts | 2 +- src/types/database.d.ts | 19 +++---------------- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index dc914e0..3279f7e 100644 --- a/README.md +++ b/README.md @@ -546,11 +546,11 @@ Toonflow 基于 AGPL-3.0 协议开源发布,许可证详情:https://www.gnu. --- - +--- # 🙏 致谢 diff --git a/src/routes/setting/getAiModelMap.ts b/src/routes/setting/getAiModelMap.ts index fa10f51..20ec1ec 100644 --- a/src/routes/setting/getAiModelMap.ts +++ b/src/routes/setting/getAiModelMap.ts @@ -8,6 +8,6 @@ export default router.post("/", async (req, res) => { const configData = await u .db("t_aiModelMap") .leftJoin("t_config", "t_aiModelMap.configId", "t_config.id") - .select("t_aiModelMap.name", "t_config.model", "t_aiModelMap.id", "t_aiModelMap.key"); + .select("t_aiModelMap.name", "t_config.model", "t_aiModelMap.id", "t_aiModelMap.key", "t_config.manufacturer"); res.status(200).send(success(configData)); }); diff --git a/src/types/database.d.ts b/src/types/database.d.ts index c90deda..dffd599 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,19 +1,6 @@ -// @db-hash 5a633f2d45df5d971905dd32c0ac9880 +// @db-hash 945540586ca016b1b9a42042fc5ccbf3 //该文件由脚本自动生成,请勿手动修改 -export interface _t_video_old_20260131 { - 'configId'?: number | null; - 'filePath'?: string | null; - 'firstFrame'?: string | null; - 'id'?: number; - 'model'?: string | null; - 'prompt'?: string | null; - 'resolution'?: string | null; - 'scriptId'?: number | null; - 'state'?: number | null; - 'storyboardImgs'?: string | null; - 'time'?: number | null; -} export interface t_aiModelMap { 'configId'?: number | null; 'id'?: number; @@ -52,7 +39,6 @@ export interface t_config { 'manufacturer'?: string | null; 'model'?: string | null; 'modelType'?: string | null; - 'name'?: string | null; 'type'?: string | null; 'userId'?: number | null; } @@ -139,6 +125,7 @@ export interface t_user { export interface t_video { 'aiConfigId'?: number | null; 'configId'?: number | null; + 'errorReason'?: string | null; 'filePath'?: string | null; 'firstFrame'?: string | null; 'id'?: number; @@ -151,6 +138,7 @@ export interface t_video { 'time'?: number | null; } export interface t_videoConfig { + 'aiConfigId'?: number | null; 'audioEnabled'?: number | null; 'createTime'?: number | null; 'duration'?: number | null; @@ -170,7 +158,6 @@ export interface t_videoConfig { } export interface DB { - "_t_video_old_20260131": _t_video_old_20260131; "t_aiModelMap": t_aiModelMap; "t_assets": t_assets; "t_chatHistory": t_chatHistory;