From f36accd36d33a20e29663ae3a6a61fc65648cf93 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 18 Nov 2022 17:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcAutoTmpl.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcAutoTmpl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SrcAutoTmpl.js b/SrcAutoTmpl.js index a37f2686..fe50c12b 100644 --- a/SrcAutoTmpl.js +++ b/SrcAutoTmpl.js @@ -49,7 +49,10 @@ function autoerji(url){ var details2 = ""; } try{ - var pic = pd(html,t.img,url).replace(/http.*\/tu\.php\?tu=|\/img\.php\?url=| |\/tu\.php\?tu=/g,''); + var pic = pdfh(html,t.img).replace(/http.*\/tu\.php\?tu=|\/img\.php\?url=| |\/tu\.php\?tu=/g,''); + if(!/^http/.test(pic)){ + pic = url.match(/http(s)?:\/\/.*?\//)[0] + pic; + } if(pic&&!detail.pic){detail.pic = pic;} }catch(e){ var pic = "";