diff --git a/src/routes/production/workbench/generateVideoPrompt.ts b/src/routes/production/workbench/generateVideoPrompt.ts index 9d0895c..474444a 100644 --- a/src/routes/production/workbench/generateVideoPrompt.ts +++ b/src/routes/production/workbench/generateVideoPrompt.ts @@ -42,7 +42,7 @@ export default router.post( } if (item.sources === "assets") { // 查询素材 - const assetsData = await u.db("o_assets").where("o_assets.id", item.id).select("id", "type", "name").first(); + const assetsData = await u.db("o_assets").leftJoin("o_image","o_image.id","o_assets.imageId").where("o_assets.id", item.id).select("o_assets.id", "o_assets.type", "o_assets.name","o_image.filePath").first(); return { ...assetsData, _type: "assets", // 标记类型 @@ -61,6 +61,7 @@ export default router.post( id: item.id, type: item.type, name: item.name, + filePath:item.filePath }); if (item._type === "storyboard") storyboard.push({ @@ -85,18 +86,16 @@ export default router.post( const visualManual = u.getArtPrompt(artStyle, "art_skills", "art_storyboard_video"); const content = ` **模型名称**:${modelData}, - **资产信息**(角色、场景、道具):${assets.map((i) => `[${i.id},${i.type},${i.name}]`).join(",")}, + **资产信息**(角色、场景、道具):${assets.filter(i => i.filePath).map((i) => `[${i.id},${i.type},${i.name}]`).join(",")}, **分镜信息**:${storyboard.map( (i) => ``, )}, `; + console.log("%c Line:87 🌮 content", "background:#2eafb0", content); + try { const { text } = await u.Ai.Text("universalAi").invoke({ system: videoPromptGeneration, diff --git a/src/types/database.d.ts b/src/types/database.d.ts index a787e02..1c5144d 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,6 +1,37 @@ -// @db-hash 71e339c0a728c10bedb294a93976dcd8 +// @db-hash 1447c7bc591208825cce903d05b0045c //该文件由脚本自动生成,请勿手动修改 +export interface _o_project_old_20260404 { + 'artStyle'?: string | null; + 'createTime'?: number | null; + 'directorManual'?: string | null; + 'id'?: number | null; + 'imageModel'?: string | null; + 'imageQuality'?: string | null; + 'intro'?: string | null; + 'mode'?: string | null; + 'name'?: string | null; + 'projectType'?: string | null; + 'type'?: string | null; + 'userId'?: number | null; + 'videoModel'?: string | null; + 'videoRatio'?: string | null; +} +export interface _o_prompt_old_20260406 { + 'data'?: string | null; + 'id'?: number; + 'name'?: string | null; + 'type'?: string | null; + 'useData'?: string | null; +} +export interface _o_prompt_old_20260406_1 { + 'data'?: string | null; + 'id'?: number; + 'name'?: string | null; + 'TEXT'?: any | null; + 'type'?: string | null; + 'useData'?: string | null; +} export interface memories { 'content': string; 'createTime': number; @@ -202,7 +233,6 @@ export interface o_user { } export interface o_vendorConfig { 'author'?: string | null; - 'code'?: string | null; 'createTime'?: number | null; 'description'?: string | null; 'enable'?: number | null; @@ -236,6 +266,9 @@ export interface o_videoTrack { } export interface DB { + "_o_project_old_20260404": _o_project_old_20260404; + "_o_prompt_old_20260406": _o_prompt_old_20260406; + "_o_prompt_old_20260406_1": _o_prompt_old_20260406_1; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_agentWorkData": o_agentWorkData;