revert: 回滚财新旧版 API(#5703)

This commit is contained in:
Zuyang Kou 2020-09-25 18:53:52 +08:00 committed by GitHub
parent b202a0546e
commit eb4efcb389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,11 @@ const got = require('@/utils/got');
module.exports = async (ctx) => {
const response = await got({
method: 'get',
url: 'https://mappsv5.caixin.com/index_page_v5/index_page_1.json',
url: 'http://mapiv5.caixin.com//m/api/getWapIndexListByPage?page=1&callback=&_=1560140003179',
headers: {
Referer: `http://mapiv5.caixin.com/`,
Host: 'mapiv5.caixin.com',
},
});
const data = response.data.data.list;