From 0fe6ba47eb6b35f7a336b0d5f10f54b06feb10d0 Mon Sep 17 00:00:00 2001 From: Yursd <99310159+Yursd@users.noreply.github.com> Date: Wed, 8 Oct 2025 20:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=85=E5=AD=90=E6=BC=AB?= =?UTF-8?q?=E7=94=BBbug=20(#165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baozi.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/baozi.js b/baozi.js index 8b88513..a228c2a 100644 --- a/baozi.js +++ b/baozi.js @@ -5,7 +5,7 @@ class Baozi extends ComicSource { // 唯一标识符 key = "baozi"; - version = "1.1.0"; + version = "1.1.1"; minAppVersion = "1.0.0"; @@ -484,9 +484,13 @@ class Baozi extends ComicSource { } // 代理后图片水印更少 let mobileImages = images.map((e) => { - const regex = /scomic\/.*/; + const regex = /\/[a-z]comic\/.*/; const match = e.match(regex); - return `https://as-rsa1-usla.baozicdn.com/w640/${match[0]}`; + if (match) { + return `https://as-rsa1-usla.baozicdn.com/w640${match[0]}`; + } else { + return e; + } }); return { images: mobileImages }; },