Minor fixes (#855)
This commit is contained in:
parent
0a1cb245e2
commit
5ec3edde05
|
|
@ -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 }],
|
||||
|
|
|
|||
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue