Commit 189284b
committed
fix(sdks): C++/C# demo 契约补齐——collection_query 函数不再落 action fallback
leaderboard 页发布失败(output source /items /total not found in
schema)根因链:六语言 demo 共享同一 (game,env,function_id) 契约
槽位,契约 last-writer-wins——C++/C# demo 的 schema 表只覆盖
player.*,其余函数落到 action 形状 fallback({status,action});
C++ demo 重连注册时把 Go demo 写入的正确 collection schema
(items/total)覆盖成 action 形状,发布校验按被污染契约校验
selector 路径必然失败(DB 实证:15:19:47 契约被整体改写)。
修复(与 Go/Java/JS/Python demo 对齐——它们本就全覆盖):
- C++ demo_schema_for 补 order.list/leaderboard.list/inventory.list/
mail.list → items/total 形状
- C# SchemasFor 补同款(inventory.list 按其实际 wire 形态带
playerId 输入)1 parent 5306d35 commit 189284b
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
| |||
0 commit comments