## Task 1 交付物
- view/goods/ticket_wallet.html # 票夹页面
- api/Ticket.php # C端 API(list/detail/refreshQr)
- service/WalletService.php # 票夹服务层
- index/Index.php # C端入口(wallet action)
- Hook.php # 注入票夹入口链接
## Bug 修复(Task1 调试过程中发现)
- index/Index.php: UserService::LoginInfo() → LoginUserInfo()
- Hook.php: session('user_id') → UserService::LoginUserInfo()(key 不存在)
- api/Ticket.php: LoginInfo() + :Json 返回类型 + json() 包裹
- WalletService.php: JOIN order 表 → 直接 WHERE user_id
- API URL: ?s=api/plugins/index(错误) → /api.php?s=plugins/index(正确)
## 新增文档
- docs/DEBUGGING_ROUTING.md # 🔑 ShopXO 路由调试经验(必读)
- docs/TASK1_C_WALLET.md # Task 1 交付文档
- README.md # 增加 Agent 快速索引
## 核心经验
ShopXO 多入口:页面=public/index.php,API=public/api.php,勿混用。
详见 docs/DEBUGGING_ROUTING.md
|
||
|---|---|---|
| .. | ||
| admin | ||
| api | ||
| index | ||
| install | ||
| lang | ||
| module | ||
| plugins | ||
| route | ||
| service | ||
| tpl | ||
| .gitignore | ||
| AppService.php | ||
| BaseController.php | ||
| ExceptionHandle.php | ||
| Request.php | ||
| common.php | ||
| middleware.php | ||
| provider.php | ||
| service.php | ||