Commit Graph

2 Commits (d7d7b33c96da3904924e34f8b7656144af8adc64)

Author SHA1 Message Date
Council d7d7b33c96 council(review): BackendArchitect - Fix 2 bugs in P0-A/B/P1 implementations
1. SeatSkuService: Fix regex in getExistingSpecBaseIds()
   (\d+)排(\d+)座 → (\d+)排(\d)座
   The original regex incorrectly captures 2 digit groups in "A排10座",
   causing seatId parse failure for column >= 10.

2. ticket_detail.html: Fix specBaseIdMap access in submit()
   (obj||{}).spec_base_id → direct numeric value
   PHP returns integers (not objects), so drop the .spec_base_id accessor.

关联:Issue #9

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 20:05:08 +08:00
Council 5e9c111370 council(draft): BackendArchitect - P0-A initGoodsSpecs + P0-B BatchGenerate
P0-A: BaseService::initGoodsSpecs() — 启用 is_exist_many_spec=1,
      插入 $vr-场馆/$vr-分区/$vr-时段/$vr-座位号 四维规格类型,幂等保护

P0-B: 新建 SeatSkuService.php,含:
      - BatchGenerate(): 批量生成座位级 SKU(500条/批,直接 SQL INSERT)
      - UpdateSessionSku(): 按场次更新 $vr-时段 维度
      - 幂等:已存在座位不重复生成

关联:Issue #9

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 20:00:29 +08:00