From 9030d78561f6bc05d82de51488dcab7ac8805d5d Mon Sep 17 00:00:00 2001 From: huangxd- <649924757@qq.com> Date: Sat, 13 Sep 2025 08:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A9=BA=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- danmu_api/worker.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/danmu_api/worker.js b/danmu_api/worker.js index bed468c..c595264 100644 --- a/danmu_api/worker.js +++ b/danmu_api/worker.js @@ -68,7 +68,7 @@ async function get360Animes(title) { } let animes = []; - if (data.data.longData.length !== 0) { + if ('rows' in data.data.longData) { animes = data.data.longData.rows; } @@ -217,6 +217,10 @@ async function handleRequest(req, env) { }); } + if (path === "/favicon.ico" || path === "/robots.txt") { + return new Response(null, { status: 204 }); + } + // --- 校验 token --- const parts = path.split("/").filter(Boolean); // 去掉空段 if (parts.length < 2 || parts[0] !== token) {