pay: submit.php 直出收银台页(new-api 易支付对接)

- submit.php 验签建单后不再 302,直接渲染自包含收银台 HTML,
  支付宝二维码由服务端 skip2/go-qrcode 生成 PNG data URL 内嵌
- 新增公开轮询端点 /cashier-status(页面经 /api 前缀访问),
  与 PaySvc.CashierStatus 共用 cashierStatusReply
- Cashier.vue 收银台页同步改版:取景框二维码、倒计时进度条,
  去掉跳上游收银台的外链

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
2026-11-02 23:20:11 +08:00
co-authored by Devin
parent 5a884cab97
commit 2f3bd7fc7b
7 changed files with 286 additions and 31 deletions
+3
View File
@@ -99,6 +99,9 @@ func main() {
f.BindRoute("POST", "/mapi.php", service.PayMapiHandler(st, up)),
f.BindRoute("GET", "/api.php", service.PayApiHandler(st)),
f.BindRoute("POST", "/api.php", service.PayApiHandler(st)),
// submit.php 直出收银台页的状态轮询(经代理走 /api 前缀,直连后端也兼容)
f.BindRoute("GET", "/cashier-status", service.PayCashierStatusHandler(st)),
f.BindRoute("GET", "/api/cashier-status", service.PayCashierStatusHandler(st)),
f.BindRoute("GET", "/healthz", func(c *fun.RouteCtx) error {
c.RequestCtx.WriteString("ok")
return nil