From 54752afe9b828ec232972287f757c688e36421d4 Mon Sep 17 00:00:00 2001 From: imlonghao Date: Mon, 11 Mar 2019 10:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=85=8E=E8=9B=8B=E6=97=A0=E8=81=8A=E5=9B=BE?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=BF=AE=E5=A4=8D=20(#1720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sub_model 为 top-ooxx 时也有链接,所以去掉了 if close #1716 --- lib/routes/jandan/pic.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/routes/jandan/pic.js b/lib/routes/jandan/pic.js index 0e5be59fc..2165237ea 100644 --- a/lib/routes/jandan/pic.js +++ b/lib/routes/jandan/pic.js @@ -28,17 +28,10 @@ module.exports = async (ctx) => { } // Get current comment's link. - let link = $(item) + const link = `https://jandan.net${$(item) .find('.righttext') .find('a') - .attr('href'); - - if (link !== undefined) { - link = `http:${link}`; - } else { - // sub_model 为 top-ooxx 时无链接 - link = ''; - } + .attr('href')}`; const imgList = []; $(item)