diff --git a/app/api/pay/route.ts b/app/api/pay/route.ts index b7ecc71..e219b8a 100644 --- a/app/api/pay/route.ts +++ b/app/api/pay/route.ts @@ -106,7 +106,7 @@ export async function POST(request: NextRequest) { const apiUrl = payConfig.apiUrl.replace(/\/$/, ""); const user_id = String(body?.user_id || "").trim(); const return_url = String(body?.return_url || "").trim(); - const total_fee = Number(body?.total_fee) || 18800; + const total_fee = Number(body?.total_fee) || 180; const type = String(body?.type || "vip"); const channel = String(body?.channel || "alipay"); const device = String(body?.device || "pc"); diff --git a/app/page.tsx b/app/page.tsx index be82f86..6b67087 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -146,7 +146,7 @@ export default function Home() { redirectToPay({ user_id: userId, return_url: returnUrl, - total_fee: 18800, + total_fee: 180, type: "vip", channel, device,