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)