From 81372c4c1838eed27aa26653e1168ef4c51af294 Mon Sep 17 00:00:00 2001 From: a14907 <1490747123@qq.com> Date: Sun, 29 Sep 2019 15:31:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3tianya/index/:type?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E8=B7=AF=E5=BE=84=E4=B8=8D=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E7=9A=84=E9=97=AE=E9=A2=98=20(#3165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/tianya/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/tianya/index.js b/lib/routes/tianya/index.js index 37dd33ac6f..148a3d705c 100644 --- a/lib/routes/tianya/index.js +++ b/lib/routes/tianya/index.js @@ -11,7 +11,7 @@ module.exports = async (ctx) => { .map((_, ele) => { const $item = cheerio.load(ele); const title = $item('td.td-title a').text(); - const link = $item('td.td-title a').attr('href'); + const link = 'http://bbs.tianya.cn' + $item('td.td-title a').attr('href'); const date = $item('td') .last() .attr('title');