fix shmtu $ get (#1773)

1c7984272e
This commit is contained in:
Simon Shi 2019-03-18 15:15:12 +08:00 committed by DIYgod
parent 6b0eba41f4
commit 1bf0490bff
3 changed files with 9 additions and 3 deletions

View File

@ -13,7 +13,9 @@ module.exports = async (ctx) => {
});
const $ = cheerio.load(response.data);
const text = $('tr', 'tbody').slice(0, 10);
const text = $('tr', 'tbody')
.slice(0, 10)
.get();
ctx.state.data = {
title: '上海海事大学 学术讲座',

View File

@ -15,7 +15,9 @@ module.exports = async (ctx) => {
});
const $ = cheerio.load(response.data);
const text = $('.gvRow', '.tdMCViewList').slice(0, 10);
const text = $('.gvRow', '.tdMCViewList')
.slice(0, 10)
.get();
ctx.state.data = {
title: `上海海事大学 ${info}`,

View File

@ -13,7 +13,9 @@ module.exports = async (ctx) => {
});
const $ = cheerio.load(response.data);
const text = $('tr', 'tbody').slice(0, 10);
const text = $('tr', 'tbody')
.slice(0, 10)
.get();
ctx.state.data = {
title: '上海海事大学 通知公告',