's'
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user