This commit is contained in:
eric
2026-03-10 07:46:21 -05:00
parent dbb421ed5a
commit 0c4066173f
3 changed files with 32 additions and 7 deletions

View File

@@ -11,8 +11,9 @@ export async function GET(request: NextRequest) {
try {
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 25000);
// 使用 order_status 通用接口xorpay 查 PocketBasezpay 查 ZPAY
const res = await fetch(
`${apiUrl}/nomadvip/zpay_order_status?out_trade_no=${encodeURIComponent(orderId)}`,
`${apiUrl}/nomadvip/order_status?order_id=${encodeURIComponent(orderId)}`,
{ cache: "no-store", signal: controller.signal }
).finally(() => clearTimeout(timeout));
const data = await res.json().catch(() => ({}));