Skip to content

Commit

Permalink
fix(route): 最终幻想14 国服新闻 (DIYgod#7880)
Browse files Browse the repository at this point in the history
  • Loading branch information
15x15G authored Jul 17, 2021
1 parent 0f4efa8 commit b104145
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/routes/ff14/ff14_zh.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const got = require('@/utils/got');

const timezone = require('@/utils/timezone');
module.exports = async (ctx) => {
const referer = 'http://ff.sdo.com/web8/index.html';
const type = ctx.params.type;
Expand Down Expand Up @@ -29,10 +29,8 @@ module.exports = async (ctx) => {
item: data.map(({ Title, Summary, Author, PublishDate, HomeImagePath }) => ({
title: Title,
link: Author,
description: `
<img src="${HomeImagePath}"><br>
${Summary}<br>
${PublishDate}`,
description: `<img src="${HomeImagePath}"/><br>${Summary}`,
pubDate: timezone(new Date(PublishDate), +8),
})),
};
};

0 comments on commit b104145

Please sign in to comment.