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
+1 -1
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 动态`,