merge: 同步 upstream/main 新功能到定制版本

- feat: Add slider verification code (bd67997)
- fix bug: Inventory cannot be zero (1f7a6ee)
- fix: resolve merge conflicts and lint errors
This commit is contained in:
2026-03-23 21:50:10 -07:00
parent 3806264343
commit d6616c5859
63 changed files with 3111 additions and 1130 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
const apiBase = (env.API_BASE_URL || "https://api.ppanel.dev").replace(
/\/$/,
"",
""
);
const url = new URL(request.url);
@@ -41,11 +41,11 @@ export const onRequest: PagesFunction<Env> = async (context) => {
responseHeaders.set("Access-Control-Allow-Origin", url.origin);
responseHeaders.set(
"Access-Control-Allow-Methods",
"GET, POST, PUT, DELETE, PATCH, OPTIONS",
"GET, POST, PUT, DELETE, PATCH, OPTIONS"
);
responseHeaders.set(
"Access-Control-Allow-Headers",
"Content-Type, Authorization",
"Content-Type, Authorization"
);
if (request.method === "OPTIONS") {