This commit is contained in:
eric
2026-03-13 05:51:05 -05:00
parent 2365bb9e17
commit c1eb0bbcf3
5 changed files with 17 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import { usePayStatusPoll } from "@/app/lib/payment/usePayStatusPoll";
* 全局支付轮询:支付返回任意页面时检测 paid调用 confirm 后跳转首页
*/
export function PayStatusPollProvider() {
usePayStatusPoll(() => {
usePayStatusPoll((_orderId) => {
window.location.href = "/";
});
return null;