fix: api for caixin article (#5456)

This commit is contained in:
Ethan Shen
2020-08-22 21:39:40 +01:00
committed by GitHub
parent 9ec3837377
commit 18b58d5493
+1 -5
View File
@@ -3,11 +3,7 @@ const got = require('@/utils/got');
module.exports = async (ctx) => {
const response = await got({
method: 'get',
url: 'http://mapiv5.caixin.com//m/api/getWapIndexListByPage?page=1&callback=&_=1560140003179',
headers: {
Referer: `http://mapiv5.caixin.com/`,
Host: 'mapiv5.caixin.com',
},
url: 'https://mappsv5.caixin.com/index_page_v5/index_page_1.json',
});
const data = response.data.data.list;