pay: submit.php 回到 302,收银台页落在 /cashier.php

直出页面时 POST 表单刷新会丢/重复提交。改为 PRG:
submit.php 建单后 302 到 /cashier.php?trade_no=(后端渲染同一
收银台页,按订单当前状态展示,刷新安全);nginx 放行 cashier.php。

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:45:45 +08:00
co-authored by Devin
parent 2f3bd7fc7b
commit e54f989f98
4 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ server {
proxy_read_timeout 3600s;
}
location ~ ^/(submit|mapi|api)\.php$ {
location ~ ^/(submit|mapi|api|cashier)\.php$ {
proxy_pass http://127.0.0.1:8891;
proxy_http_version 1.1;
proxy_set_header Host $host;