From 98fdd2f284720ac99fa26f423e7d0258fba62f3a Mon Sep 17 00:00:00 2001 From: roffy3051 Date: Fri, 1 Nov 2024 00:59:20 +0800 Subject: [PATCH] =?UTF-8?q?to:=20=E4=BF=AE=E6=94=B9pximg=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/api/index.js b/src/api/index.js index c350847d..5ace4c69 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -15,8 +15,14 @@ const isSupportWebP = (() => { return false; })(); +const imgProxyList = [ + 'pximg.jad-sub-0.workers.dev', + 'pximg.jad-sub-1.workers.dev', + 'pximg.jad-sub-2.workers.dev', +] + const imgProxy = url => { - let result = url.replace(/i.pximg.net/g, 'pximg.journey-ad.workers.dev') + let result = url.replace(/i.pximg.net/g, imgProxyList[Math.floor(Math.random() * imgProxyList.length)]) if (!isSupportWebP) { result = result.replace(/_10_webp/g, '_70')