fix guyu 501 (#1884)

closes #1878
This commit is contained in:
Chenyang Shi
2019-04-08 11:30:08 +08:00
committed by DIYgod
parent a9e9ca0b19
commit af303e075b

View File

@@ -16,7 +16,11 @@ module.exports = async (ctx) => {
const link = map.get(type).link;
const api = `https://i.match.qq.com/ninjayc/guyu?action=guyu&channelid=${channelid}&p=0&num=10`;
const response = await axios.get(api);
const response = await axios({
method: 'get',
url: api,
headers: { Referer: link },
});
const list = response.data.data;
const out = await Promise.all(