This commit is contained in:
eric
2026-03-12 03:54:50 -05:00
parent 170a9939aa
commit 40230dd646
20 changed files with 645 additions and 95 deletions

View File

@@ -14,6 +14,7 @@ async function createPayOrder(
const payload = {
user_id,
site_id: "meetup",
total_fee: Number(total_fee) || config.defaultAmount,
type: type || config.defaultType,
channel,
@@ -23,7 +24,7 @@ async function createPayOrder(
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 10000);
const res = await fetch(`${config.apiUrl}/payh5`, {
const res = await fetch(`${config.apiUrl}/cnomadcna/payh5`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
@@ -56,7 +57,7 @@ export async function POST(request: NextRequest) {
const user_id = String(body?.user_id || "").trim();
const return_url = String(body?.return_url || "").trim() || `${SITE_URL}/zh/join/paid`;
const total_fee = Number(body?.total_fee) || 80;
const total_fee = Number(body?.total_fee) || 100;
const type = String(body?.type || "meetup");
const channel = String(body?.channel || "alipay");
const device = String(body?.device || "pc");