vr-shopxo-plugin/MEMORY.md

41 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
## vr-shopxo-plugin 项目状态2026-04-15
### 当前阶段Phase 1 进行中
**ShopXO 环境:**
- Docker: shopxo-web :10000 / shopxo-mysql :10001 / shopxo-php :9000
- 表前缀:`vrt_`
- 后台入口:`adminwatekc.php`
- 数据库凭证root=shopxo_root_2024 / user=shopxo_user / pass=shopxo_pass_2024
- ShopXO 源码:`~/.openclaw/workspace/council-research/shopxo-eval/.worktrees/shopxo-evaluator/shopxo-src/`
**Phase 0 完成 ✅**
- 插件骨架生成完毕14个文件
- 数据库4张表已创建`vrt_vr_seat_templates`, `vrt_vr_tickets`, `vrt_vr_verifiers`, `vrt_vr_verifications`
- `item_type` 字段已添加到 `vrt_goods`
- 插件已注册到 `vrt_plugins`is_enable=1
**Phase 1 完成 ✅**
- Goods.php 改法验证通过票务商品item_type='ticket')走独立模板
- 前端票务详情页渲染正常座位图行A/B/C+ 场次选择 + 观演人表单 + 购买栏
- 测试商品ID 112VR演唱会电子票 2024item_type='ticket'
- 测试座位模板Bird Nest - Zone A3排座位颜色区分区域
**核心文件路径:**
- 插件目录:`shopxo-src/app/plugins/vr_ticket/`
- Goods.php 改法:`shopxo-modifications/app/index/controller/Goods.php`
- 前端模板:`app/plugins/vr_ticket/view/goods/ticket_detail.html`
**关键结论:**
- 模板路径:`/../../../plugins/vr_ticket/view/goods/ticket_detail`(相对于 `app/index/view/default/`
- `vr_seat_template` 数据在 Goods.php 中按 `category_id` 查询后传入视图
- 商品 `item_type` 字段:创建票务商品时设为 `'ticket'`
**待办:**
- Phase 2完善后台管理页面admin controller + view
- Phase 3完成支付回调 → 发票钩子联调
- Phase 4B端扫码核销 API + 核销员管理