From 00c04b57d3af36f1b47a6f5e7a22f84e50779c80 Mon Sep 17 00:00:00 2001 From: wood Date: Sun, 18 Feb 2024 02:10:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BD=BF=E7=94=A8pagesdev?= =?UTF-8?q?=E7=9A=84=E9=9D=99=E6=80=81=E6=96=87=E4=BB=B6=EF=BC=8C=E6=84=9F?= =?UTF-8?q?=E8=A7=89=E4=BC=9A=E6=96=B9=E4=BE=BF=E6=8E=A7=E5=88=B6=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=B9=B6=E5=8A=A0=E5=BF=AB=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker 302跳转.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker 302跳转.js b/worker 302跳转.js index 448da32..d662eb8 100644 --- a/worker 302跳转.js +++ b/worker 302跳转.js @@ -1,5 +1,5 @@ // 外部 JSON 文件的 URL -const CSV_PATHS_URL = 'https://raw.githubusercontent.com/woodchen-ink/Random-Api/main/url.json'; +const CSV_PATHS_URL = 'https://random-api.pages.dev/url.json'; addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)); @@ -43,7 +43,7 @@ async function handleRequest(request) { } } else { // 如果不是 CSV 资源路径,返回 index.html 内容 - const indexHtmlResponse = await fetch('https://raw.githubusercontent.com/woodchen-ink/Random-Api/main/index.html'); + const indexHtmlResponse = await fetch('https://random-api.pages.dev'); return new Response(indexHtmlResponse.body, { headers: { 'Content-Type': 'text/html' }, });