修复游戏封面生成素材 ID 回传
Project CI / AI game creator shell Rust crates (push) Successful in 1m33s
Project CI / AI game creator shell Rust smoke (push) Successful in 2m2s
Project CI / Backend tests (push) Successful in 4m7s
Project CI / Frontend tests (push) Successful in 2m10s
Project CI / Native shell tests (push) Successful in 6m12s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 8m17s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 9m37s
Project CI / AI game creator shell web tests (push) Successful in 1m34s
Project CI / Repository checks (push) Successful in 2m1s

生成游戏封面请求补充 AGC 客户端来源标记,确保队列 worker 返回 result。

补充封面生成请求断言,锁定平台素材 ID 回填链路。

同步记录缺陷根因与修复约定。
This commit is contained in:
2026-09-23 21:28:19 +08:00
parent 985df53a4e
commit e0c324c0ac
3 changed files with 8 additions and 0 deletions
@@ -232,6 +232,9 @@ export async function generateGameDistributionCover(args: {
aspectRatio: args.aspectRatio ?? '16:9',
imageSize: args.imageSize ?? '2K',
assetLabel: args.assetLabel?.trim() || '游戏封面',
// 中文注释:队列结果按客户端来源选择回填契约;否则后端会按 Standard
// consumer 紧凑化并不返回 result,生成完成后客户端自然拿不到平台素材 ID。
generationInputs: { source: 'ai-game-creator-client' },
}),
},
'生成游戏封面失败',
@@ -276,6 +276,7 @@ test('封面生成直接使用返回的平台素材 ID,不再次上传', async
aspectRatio: '16:9',
imageSize: '2K',
assetLabel: '游戏封面',
generationInputs: { source: 'ai-game-creator-client' },
});
});