Minor fixes (#855)

This commit is contained in:
Henry Wang 2018-10-11 04:04:39 +01:00 committed by DIYgod
parent 0a1cb245e2
commit 5ec3edde05
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ module.exports = async (ctx) => {
});
if (!res.data.results) {
const unsupported = "当前 app 未被收录. Price monitor isn't available for this app.";
const unsupported = '当前 app 未被收录. Price monitor is not available for this app.';
ctx.state.data = {
title: unsupported,
item: [{ title: unsupported }],

View File

@ -34,7 +34,7 @@ module.exports = async (ctx) => {
item: data.map((item) => {
const date = new Date(item.createdAt);
return {
title: `${title} ${dayjs(date).format('MMM月DD日')}`,
title: `${title} ${dayjs(date).format('MM月DD日')}`,
description: item.content.replace(new RegExp('\n', 'g'), '<br />'),
pubDate: date.toUTCString(),
link: `https://web.okjike.com/message-detail/${item.id}/officialMessage`,