feat: Implement subscription-based premium features, payment processing, and enhanced dashboard components.

This commit is contained in:
2569718930@qq.com
2026-03-13 06:41:33 +08:00
parent f7b649bb0a
commit 54c4a26162
19 changed files with 427 additions and 90 deletions
+1 -2
View File
@@ -24,7 +24,7 @@ export async function GET(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 300) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -38,4 +38,3 @@ export async function GET(req: NextRequest) {
);
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ export async function GET(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -36,7 +36,7 @@ export async function POST(
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -50,4 +50,3 @@ export async function POST(
);
}
}
@@ -36,7 +36,7 @@ export async function POST(
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -50,4 +50,3 @@ export async function POST(
);
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ export async function POST(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -29,7 +29,7 @@ export async function POST(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -43,4 +43,3 @@ export async function POST(req: NextRequest) {
);
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ export async function GET(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}
@@ -29,7 +29,7 @@ export async function POST(req: NextRequest) {
const raw = await res.text();
const response = NextResponse.json(
{ error: `Backend returned ${res.status}`, detail: raw.slice(0, 350) },
{ status: 502 },
{ status: res.status },
);
return applyAuthResponseCookies(response, auth.response);
}