no message

This commit is contained in:
zhishi 2026-04-01 20:45:57 +08:00
parent bd585b25a4
commit 0bb7acfd9a
5 changed files with 6 additions and 6 deletions

View File

@ -472,7 +472,6 @@ description: 专注于从剧本内容中提取所使用的资产(角色、场
table.text("resolution"); table.text("resolution");
table.text("state"); table.text("state");
table.text("errorReason"); table.text("errorReason");
table.text("reason");
table.primary(["id"]); table.primary(["id"]);
table.unique(["id"]); table.unique(["id"]);
}, },

View File

@ -145,7 +145,7 @@ export default router.post("/", validateFields(requestSchema), async (req, res)
await u await u
.db("o_image") .db("o_image")
.where("id", imageId) .where("id", imageId)
.update({ state: "生成失败", reason: u.error(e).message }); .update({ state: "生成失败", errorReason: u.error(e).message });
} }
}), }),
); );

View File

@ -116,7 +116,7 @@ export default router.post(
await u await u
.db("o_image") .db("o_image")
.where({ id: imageId }) .where({ id: imageId })
.update({ state: "生成失败", reason: u.error(e).message }); .update({ state: "生成失败", errorReason: u.error(e).message });
return { return {
id: item.id!, id: item.id!,
state: "生成失败", state: "生成失败",

View File

@ -17,7 +17,7 @@ export default router.post(
.leftJoin("o_image", "o_assets.imageId", "o_image.id") .leftJoin("o_image", "o_assets.imageId", "o_image.id")
.whereIn("o_assets.id", ids) .whereIn("o_assets.id", ids)
.whereNot("o_image.state", "生成中") .whereNot("o_image.state", "生成中")
.select("o_image.state", "o_assets.id", "o_image.filePath"); .select("o_image.state", "o_assets.id", "o_image.filePath", "o_image.errorReason");
const result = await Promise.all( const result = await Promise.all(
data.map(async (item: any) => ({ data.map(async (item: any) => ({
...item, ...item,

View File

@ -1,4 +1,4 @@
// @db-hash 6b1f47596dc417ed5691fe156dc2928f // @db-hash c0d74bd27b3a41b397705c93d1737a3b
//该文件由脚本自动生成,请勿手动修改 //该文件由脚本自动生成,请勿手动修改
export interface memories { export interface memories {
@ -197,6 +197,7 @@ export interface o_vendorConfig {
'code'?: string | null; 'code'?: string | null;
'createTime'?: number | null; 'createTime'?: number | null;
'description'?: string | null; 'description'?: string | null;
'enableEnglish'?: number | null;
'icon'?: string | null; 'icon'?: string | null;
'id'?: string; 'id'?: string;
'inputs'?: string | null; 'inputs'?: string | null;
@ -220,7 +221,7 @@ export interface o_videoTrack {
'prompt'?: string | null; 'prompt'?: string | null;
'reason'?: string | null; 'reason'?: string | null;
'scriptId'?: number | null; 'scriptId'?: number | null;
'selectVideoId'?: string | null; 'selectVideoId'?: number | null;
'state'?: string | null; 'state'?: string | null;
'videoId'?: number | null; 'videoId'?: number | null;
} }