Files
mpay_v2_webman/doc/deployment/cashier.md
技术老胡 0e5de50337 1. 维护代码健壮
2. 更新项目结构文档
2026-04-27 16:20:41 +08:00

20 lines
488 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 收银台部署
命令默认在 `cashier/` 目录执行。
```bash
pnpm install
pnpm build
```
产物在 `dist/`
## 路径
- 页面入口:`/cashier``/payment`
- 收银台 JSON API`/api/cashier`
- ePay V2 / 开放支付 API`/api/pay``/api/merchant``/api/transfer`
- ePay V1 兼容入口:`/submit.php``/mapi.php``/api.php`
如果前端不走同域代理,配置 `VITE_API_BASE_URL` 指向后端;否则保持为空,通过相对路径访问 `/api`