You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (id == "order.list") return {pagination_in, list_out};
79
-
if (id == "leaderboard.list") return {pagination_in, list_out};
80
-
if (id == "inventory.list") return {pagination_in, list_out};
81
-
if (id == "mail.list") return {pagination_in, list_out};
74
+
// 与 Go demo 契约逐一对齐。此前未列出的函数落到 action fallback
75
+
//({status,action}),六语言 demo 共享同一契约槽位,fallback 注册
76
+
// 会覆盖 Go 写入的正确 schema,导致页面发布校验
77
+
// "/items,/total not found" 失败(DB 实证全量污染)。
78
+
if (id == "order.list" || id == "leaderboard.list" ||
79
+
id == "inventory.list" || id == "mail.list") return {pagination_in, list_out};
80
+
if (id == "mail.batch_send") return {"{\"type\":\"object\",\"properties\":{\"mailIds\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"title\":{\"type\":\"string\"},\"content\":{\"type\":\"string\"},\"reward\":" + std::string(SCHEMA_OBJ) + "}}",
"order.get" or "order.update"=>(BuildObj("{\"id\":"+SchemaStr+",\"status\":"+SchemaStr+",\"channel\":"+SchemaStr+",\"amount\":"+SchemaInt+"}",new[]{"id"}),
"inventory.grant" or "inventory.consume"=>(BuildObj("{\"playerId\":"+SchemaStr+",\"templateId\":"+SchemaStr+",\"quantity\":"+SchemaInt+"}",new[]{"playerId","templateId"}),
457
+
BuildObj("{\"item\":"+SchemaObj+"}")),
458
+
"mail.send" or "mail.claim"=>(BuildObj("{\"playerId\":"+SchemaStr+",\"mailId\":"+SchemaStr+"}",new[]{"playerId"}),
0 commit comments