fix(dev): redirect 形态落地自包含 mock-cashier 页(返回可用),替代 /result 的 404 死路

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
This commit is contained in:
wangjia
2026-07-11 07:45:26 +08:00
parent 1d9a8cb26a
commit 1f87b0fcbf
2 changed files with 40 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (p *Provider) Create(_ context.Context, req provider.CreateRequest) (*provi
ProviderRef: ref,
RenderType: provider.RenderRedirect,
Payload: map[string]any{
"url": "http://localhost:8090/result?out_trade_no=" + req.OutTradeNo,
"url": "http://localhost:8090/mock-cashier?out_trade_no=" + req.OutTradeNo,
},
ExpiresAt: &exp,
}, nil