fix: 简阅(simpread) 格式美化

This commit is contained in:
zytomorrow 2021-01-08 15:13:42 +08:00
parent ce132be12e
commit 0747bfb992
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ module.exports = async (ctx) => {
const $ = cheerio.load(data);
ctx.state.data = {
title: 'SimpRead 更新日志',
link: url,
link: 'https://simpread.pro/changelog.html',
description: $('body > div.container.changelog > div.desc').html(),
item: $('.version')
.map((index, item) => {
@ -68,7 +68,7 @@ module.exports = async (ctx) => {
return {
description: $(detail).html(),
link: url,
link: 'https://simpread.pro/changelog.html',
pubDate: `${year}-${month_day.replace('.', '-')} 00:00:00 GMT`,
title: `${version_type}${version}`,
author: 'SimpRead',

View File

@ -7,11 +7,11 @@ module.exports = async (ctx) => {
const data = response.data.notice;
ctx.state.data = {
title: 'SimpRead 消息通知',
link: 'http://ksria.com/simpread/changelog.html',
link: 'https://simpread.pro/changelog.html',
description: 'SimpRead 消息通知',
item: data.map((item) => ({
description: md.render(item.content),
link: 'http://ksria.com/simpread/changelog.html',
link: 'https://simpread.pro/changelog.html',
pubDate: item.date,
title: `${item.category.name}-${item.title}`,
author: 'SimpRead',