From 2ea9f06a91fe58cd85f01a69eca00b4f52bc0c09 Mon Sep 17 00:00:00 2001 From: huangxd- <649924757@qq.com> Date: Fri, 12 Sep 2025 19:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95vercel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- danmu_api/worker.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/danmu_api/worker.js b/danmu_api/worker.js index bed468c..366568d 100644 --- a/danmu_api/worker.js +++ b/danmu_api/worker.js @@ -229,6 +229,11 @@ async function handleRequest(req, env) { // 移除 token 部分,剩下的才是真正的路径 path = "/" + parts.slice(1).join("/"); + return jsonResponse( + { errorCode: 401, token: token, errorMessage: "/" + parts.slice(1).join("/") }, + 401 + ); + // GET /api/v2/search/anime if (path === "/api/v2/search/anime" && method === "GET") { return searchAnime(url);