diff --git a/jd_global_mh.js b/jd_global_mh.js index f760d8c6..1633950a 100644 --- a/jd_global_mh.js +++ b/jd_global_mh.js @@ -113,7 +113,7 @@ async function getHome(info = false) { data = JSON.parse(data); if (data['code'] === '0') { const {myLuckyBox, luckyBoxList, rewardBagList} = data.result.data - let beanBox = luckyBoxList.filter(vo => vo.boxMaterials.findIndex(bo => bo.title === '京豆') > -1) + let beanBox = luckyBoxList.filter(vo => vo.boxMaterials.findIndex(bo => !!bo & bo.title === '京豆') > -1) if (beanBox.length) { beanBox = beanBox[0] if (beanBox['orderNo'] !== '' && beanBox['openRecId'] !== '') {