docs: record merged miniapp verification
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
# 合并版场馆小程序验证记录
|
||||
|
||||
## 构建
|
||||
|
||||
- 命令:`npm run build:mp-weixin`
|
||||
- 结果:通过,命令退出码为 0
|
||||
- 产物:`miniprogram/dist/build/mp-weixin`
|
||||
- 备注:构建日志包含 uni-app 版本提示和 uview-plus/Sass 弃用警告,未出现编译错误。
|
||||
|
||||
## 路由隔离
|
||||
|
||||
- 检查旧的无前缀页面路径:通过
|
||||
- 冰场馆页面前缀:`pages/ice`
|
||||
- 综合场馆页面前缀:`pages/comprehensive`
|
||||
- `pages.json` 首个页面:`pages/venue-select/index`
|
||||
- `pages.json` 页面数量:30
|
||||
- 综合场馆页面数量:19
|
||||
- 冰场馆页面数量:10
|
||||
- 全局 `tabBar`:未配置
|
||||
|
||||
## API 隔离
|
||||
|
||||
- 冰场馆 baseURL:`VITE_ICE_API_BASE_URL`
|
||||
- 综合场馆 baseURL:`VITE_COMPREHENSIVE_API_BASE_URL`
|
||||
- 旧 `VITE_API_BASE_URL`:未使用
|
||||
- 旧全局 API import:未发现
|
||||
|
||||
## 登录态隔离
|
||||
|
||||
- 冰场馆 token:`ICE_MEMBER_TOKEN`
|
||||
- 冰场馆 token 过期时间:`ICE_MEMBER_TOKEN_EXPIRES_AT`
|
||||
- 综合场馆 token:`COMPREHENSIVE_VENUE_TOKEN`
|
||||
|
||||
## 支付隔离
|
||||
|
||||
- `uni.requestPayment` 仅出现在 `pages/comprehensive/pay/index.vue`
|
||||
- 综合场馆支付接口仅出现在 `modules/comprehensive/api/order.js`
|
||||
- 冰场馆模块未引用综合场馆支付页或支付 API
|
||||
|
||||
## 自动化检查命令
|
||||
|
||||
```bash
|
||||
cd /Volumes/ExternalStorageA/project/2026.5/体育场馆/场馆小程序/miniprogram
|
||||
npm run build:mp-weixin
|
||||
```
|
||||
|
||||
```bash
|
||||
cd /Volumes/ExternalStorageA/project/2026.5/体育场馆/场馆小程序
|
||||
rg -n "@/api|@/stores/session|@/utils/(date|money|status)|@/components/StatePanel.vue" miniprogram/src/pages miniprogram/src/modules
|
||||
rg -n '\x27/pages/(home|courses|bookings|profile|activities|private|tickets|orders|pay)|"/pages/(home|courses|bookings|profile|activities|private|tickets|orders|pay)|`/pages/(home|courses|bookings|profile|activities|private|tickets|orders|pay)' miniprogram/src/pages
|
||||
rg -n "VITE_API_BASE_URL" miniprogram/src/modules miniprogram/.env miniprogram/.env.example miniprogram/vite.config.js
|
||||
node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('miniprogram/src/pages.json','utf8')); const paths=p.pages.map(x=>x.path); console.log(JSON.stringify({first: paths[0], total: paths.length, comprehensive: paths.filter(x=>x.startsWith('pages/comprehensive/')).length, ice: paths.filter(x=>x.startsWith('pages/ice/')).length, hasTabBar: Boolean(p.tabBar)}, null, 2));"
|
||||
```
|
||||
|
||||
## 微信开发者工具烟测
|
||||
|
||||
当前终端环境未直接打开微信开发者工具执行人工烟测。上线或提审前需要在微信开发者工具中打开:
|
||||
|
||||
```text
|
||||
/Volumes/ExternalStorageA/project/2026.5/体育场馆/场馆小程序/miniprogram/dist/build/mp-weixin
|
||||
```
|
||||
|
||||
人工检查项:
|
||||
|
||||
- 首次进入展示“选择场馆”。
|
||||
- 选择“冰场馆”进入 `pages/ice/home/index`。
|
||||
- 选择“综合场馆”进入 `pages/comprehensive/home/index`。
|
||||
- 两个模块的“会员中心/我的”可返回 `pages/venue-select/index` 切换场馆。
|
||||
- 冰场馆页面请求域名为 `https://venue.test.chatgqt.top`。
|
||||
- 综合场馆页面请求域名为 `https://venue2.test.chatgqt.top`。
|
||||
- 综合场馆支付页仍由综合场馆后端生成支付参数。
|
||||
|
||||
## 上线前人工检查
|
||||
|
||||
- 微信 request 合法域名包含 `venue.test.chatgqt.top`。
|
||||
- 微信 request 合法域名包含 `venue2.test.chatgqt.top`。
|
||||
- 综合场馆支付商户、回调和综合场馆后端配置保持现状。
|
||||
Reference in New Issue
Block a user