fix: JSON.parse in bilibili dynamic, close #2336

This commit is contained in:
DIYgod 2019-06-08 16:05:48 +08:00
parent 83436a0c49
commit cce279f901
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module.exports = async (ctx) => {
},
transformResponse: [(data) => data],
});
const data = JSONbig.parse(response.data).data.cards;
const data = JSONbig.parse(response.body).data.cards;
ctx.state.data = {
title: `${data[0].desc.user_profile.info.uname} 的 bilibili 动态`,