fix: maoyan upcoming (#3665)

This commit is contained in:
SweetDumpling
2020-01-03 11:32:37 +08:00
committed by DIYgod
parent 8d583cf3ae
commit b7d0e5eb99
+5 -2
View File
@@ -4,6 +4,9 @@ module.exports = async (ctx) => {
const response = await got({
method: 'get',
url: 'https://m.maoyan.com/ajax/comingList?token=',
headers: {
cookie: '_lxsdk_cuid=16c04ba8492c8-00efb7395fe43-4c312272-e1000-16c04ba8492c8;',
},
});
const data = response.data.coming;
const items = await Promise.all(
@@ -16,9 +19,9 @@ module.exports = async (ctx) => {
);
ctx.state.data = {
title: `猫眼电影 - 正在热映`,
title: `猫眼电影 - 即将上映`,
link: `https://maoyan.com/films?showType=2`,
description: `猫眼电影 - 正在热映`,
description: `猫眼电影 - 即将上映`,
item: items,
};
};