清理 AGC 发布注释里的旧统一路由说法
删掉仍写着「合并成一次 POST /versions / gameId 有则带」的两行旧注释
This commit is contained in:
@@ -2003,11 +2003,10 @@ pub(crate) async fn publish_local_project_game(
|
||||
0,
|
||||
0,
|
||||
);
|
||||
// 首次发布与更新合并成一次 `POST /versions`:作品行由同一事务按 `(owner, projectKey)`
|
||||
// get-or-create,封面/截图只解析一次、只上传一遍。`gameId` 有则带(更新),无则带 projectKey。
|
||||
// 首次发布与追加版本共用同一份资料,但**路径即身份**:新作品走 `POST /games`
|
||||
// (无路径槽,靠 `projectKey` 派生身份、首版号固定 1);追加版本走
|
||||
// `…/games/{game_id}/versions/{version_number}`,body 不再重复 `gameId` / `versionNumber`。
|
||||
// 作品行由同一事务按 `(owner, projectKey)` get-or-create,封面/截图只解析一次、只上传一遍。
|
||||
let version_number_text = version_number.to_string();
|
||||
let (publish_segments, publish_project_key) = match target_game_id.as_deref() {
|
||||
Some(game_id) => (
|
||||
|
||||
Reference in New Issue
Block a user