fix: 解决tianya/index/:type生成的路径不匹配的问题 (#3165)

This commit is contained in:
a14907
2019-09-29 15:31:59 +08:00
committed by DIYgod
parent 2ab28470ef
commit 81372c4c18
+1 -1
View File
@@ -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');