Files
hi-server/internal
shanshanzhong147 117dc0d6a7 修复(#3): 抽奖 GrantLedger.Payload 空字符串违反 MySQL JSON 校验
Closes HIF-3 (Stage 1 P0 from QA smoke - third and final of the same class)

F6 (P0): GrantLedger.Payload=\"\" → MySQL error 3140 (Invalid JSON text: The document is empty)
- 修法:方式 A 对称守卫 Payload=\"{}\" (与 PR E UnmetReasons=\"[]\", PR C PrizeSnapshot.Config=\"{}\" 三处守卫模式统一)
- QA 已 sweep 全部 6 个 lottery JSON 列,这是最后一处漏守
- handler 成功 dispatch 后会 UpdateColumn 覆盖真实 payload;Reserve 阶段用 {} 兜底

回归护栏:TestReserve_EmptyPayloadDefaultsToEmptyJSONObject 用 payloadNotEmptyString per-arg matcher
CI 全绿;2 files, +83/-0

架构师复盘:三次同一 pattern 漏检查(F2 audit ctx keys / F4 UnmetReasons / F6 Payload)。Stage 2 起硬性规则:grep -RIn 'type:json' internal/model/ 全量清单逐列 sweep + 每列至少一条 per-arg matcher 单测。感谢 QA 三次挖坑。
2026-07-09 09:27:14 -07:00
..
2026-05-06 05:42:48 -07:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00