修复游戏封面生成素材 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
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:
@@ -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' },
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -45,3 +45,7 @@ AGC 发布面板完成三项收敛:
|
||||
- 不做网页发布页的自动生成。
|
||||
- 不新增发布草稿持久化、生成历史、重试队列或 SpacetimeDB 表。
|
||||
- 不改变封面上传入口和手动选择封面的能力。
|
||||
|
||||
## 6. 本次缺陷修复记录
|
||||
|
||||
- 2026-09-23:AGC 生成游戏封面请求补充 `generationInputs.source = "ai-game-creator-client"`。队列 worker 依据该来源选择 `GameCreatorResourceEditor` 结果契约;未标记来源时会按 `Standard` 紧凑化并省略 `result`,导致生成完成后无法回传 `assetObjectId`。对应前端定向测试已锁定请求字段与平台素材 ID 回填链路。
|
||||
|
||||
Reference in New Issue
Block a user