This commit is contained in:
eric
2026-03-13 04:41:51 -05:00
parent 37d0883ce9
commit a193fe4d45
22 changed files with 1119 additions and 468 deletions

View File

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