修复生成视频问题
This commit is contained in:
parent
347244587b
commit
380a791da2
@ -1,8 +1,5 @@
|
|||||||
import express from "express";
|
import express from "express";
|
||||||
import u from "@/utils";
|
import u from "@/utils";
|
||||||
import { z } from "zod";
|
|
||||||
import { success } from "@/lib/responseFormat";
|
|
||||||
import { validateFields } from "@/middleware/middleware";
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
export default router.post("/", async (req, res) => {
|
export default router.post("/", async (req, res) => {
|
||||||
|
|||||||
@ -13,6 +13,7 @@ export default router.post(
|
|||||||
}),
|
}),
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
const { scriptId, specifyIds } = req.body;
|
const { scriptId, specifyIds } = req.body;
|
||||||
|
console.log("%c Line:16 🍡", "background:#465975");
|
||||||
const data = await u.db("o_video").where("scriptId", scriptId).whereIn("id", specifyIds).select("*");
|
const data = await u.db("o_video").where("scriptId", scriptId).whereIn("id", specifyIds).select("*");
|
||||||
res.status(200).send(success(data));
|
res.status(200).send(success(data));
|
||||||
},
|
},
|
||||||
|
|||||||
12
src/types/database.d.ts
vendored
12
src/types/database.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// @db-hash d0e44c9c923897d847cded0a28012baf
|
// @db-hash 56071dcf512e84c37ffd555806af7162
|
||||||
//该文件由脚本自动生成,请勿手动修改
|
//该文件由脚本自动生成,请勿手动修改
|
||||||
|
|
||||||
export interface memories {
|
export interface memories {
|
||||||
@ -59,7 +59,7 @@ export interface o_eventChapter {
|
|||||||
export interface o_flowData {
|
export interface o_flowData {
|
||||||
'createTime'?: number | null;
|
'createTime'?: number | null;
|
||||||
'data'?: string | null;
|
'data'?: string | null;
|
||||||
'episodesId'?: number | null;
|
'espisodeId'?: number | null;
|
||||||
'id'?: number;
|
'id'?: number;
|
||||||
'key'?: string | null;
|
'key'?: string | null;
|
||||||
'projectId'?: number | null;
|
'projectId'?: number | null;
|
||||||
@ -117,25 +117,25 @@ export interface o_setting {
|
|||||||
'value'?: string | null;
|
'value'?: string | null;
|
||||||
}
|
}
|
||||||
export interface o_storyboard {
|
export interface o_storyboard {
|
||||||
'associateAssetsIds'?: string | null;
|
|
||||||
'camera'?: string | null;
|
'camera'?: string | null;
|
||||||
'createTime'?: number | null;
|
'createTime'?: number | null;
|
||||||
|
'description'?: string | null;
|
||||||
'duration'?: string | null;
|
'duration'?: string | null;
|
||||||
'filePath'?: string | null;
|
'filePath'?: string | null;
|
||||||
'frameType'?: string | null;
|
'frameMode'?: string | null;
|
||||||
'id'?: number;
|
'id'?: number;
|
||||||
'mode'?: string | null;
|
'mode'?: string | null;
|
||||||
'model'?: string | null;
|
'model'?: string | null;
|
||||||
'name'?: string | null;
|
|
||||||
'prompt'?: string | null;
|
'prompt'?: string | null;
|
||||||
'resolution'?: string | null;
|
'resolution'?: string | null;
|
||||||
'scriptId'?: number | null;
|
'scriptId'?: number | null;
|
||||||
'sound'?: string | null;
|
'sound'?: string | null;
|
||||||
|
'title'?: string | null;
|
||||||
}
|
}
|
||||||
export interface o_storyboardFlow {
|
export interface o_storyboardFlow {
|
||||||
'flowData': string;
|
'flowData': string;
|
||||||
'id'?: number;
|
'id'?: number;
|
||||||
'stroryboardId': number;
|
'storyboardId': number;
|
||||||
}
|
}
|
||||||
export interface o_tasks {
|
export interface o_tasks {
|
||||||
'describe'?: string | null;
|
'describe'?: string | null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user