Fix PKU EECS Notification Link return 404 (#623)

1. fix item link 404 error 
2. add default title
This commit is contained in:
dongdongdu
2018-09-02 20:02:18 +08:00
committed by DIYgod
parent 8e7207c06f
commit 096011a982
+2 -2
View File
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const text = $('.hvr-shutter-out-vertical');
ctx.state.data = {
title: '',
title: '北大信科通知',
link: host + 'Survey/Notice/?Mtitle=' + type,
description: '北大信科 公告通知',
item:
@@ -31,7 +31,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.find('p').text(),
link: host + item.attr('href'),
link: host + 'Survey/Notice/' + item.attr('href'),
description: item.find('p').text(),
pubDate: item.find('em').text(),
};