diff --git a/jd_nian.js b/jd_nian.js index 082c3096..1dad640b 100644 --- a/jd_nian.js +++ b/jd_nian.js @@ -478,7 +478,7 @@ function getFriendData(inviteId) { console.log(`${$.name} API请求失败,请检查网路重试`) } else { data = JSON.parse(data); - if (data && data.data['bizCode'] === 0) { + if (data.data && data.data['bizCode'] === 0) { $.itemId = data.data.result.homeMainInfo.guestInfo.itemId await collectScore('2',$.itemId,null,inviteId) }