From 259f289af648e8a5c5c379a62d6918dc63867280 Mon Sep 17 00:00:00 2001 From: prnake <52364396+prnake@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:26:15 +0800 Subject: [PATCH] feat: BTBYR update (#4941) --- lib/routes/universities/bupt/funbox.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/routes/universities/bupt/funbox.js b/lib/routes/universities/bupt/funbox.js index 2e24f03bc..9057c2b49 100644 --- a/lib/routes/universities/bupt/funbox.js +++ b/lib/routes/universities/bupt/funbox.js @@ -20,13 +20,19 @@ module.exports = async (ctx) => { .map((i, e) => ({ title: $(e).find('tr > td.rowfollow').eq(0).text(), pubDate: new Date($(e).find('tr > td.rowfollow > span').attr('title')).toUTCString(), - description: $(e).find('tr > td.rowfollow').eq(2).html(), - link: url + `log.php?action=funbox#` + new Date($(e).find('tr > td.rowfollow > span').attr('title')).getTime() / 1000, + description: $(e) + .find('tr > td.rowfollow') + .eq(2) + .html() + .replace(/onclick=.*findPosition\(this\)\[1\]-58\);"/g, '') + .replace(/.thumb.jpg/g, ''), + link: url + `log.php?action=funbox`, + guid: new Date($(e).find('tr > td.rowfollow > span').attr('title')).getTime() / 1000, })) .get(); ctx.state.data = { - title: 'BYRBT - 趣味盒', + title: 'BTBYR - 趣味盒', link: url + `log.php?action=funbox`, item: list, };