From 26c86b8bb6ea811b61ef8315aed59623ae51801e Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Mon, 22 Feb 2021 09:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D$.allFriends=E4=B8=BAundefine?= =?UTF-8?q?d=E6=97=B6=EF=BC=8C=E5=AF=BC=E8=87=B4=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_joy_steal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jd_joy_steal.js b/jd_joy_steal.js index 0340f058..da346169 100644 --- a/jd_joy_steal.js +++ b/jd_joy_steal.js @@ -139,7 +139,7 @@ async function jdJoySteal() { console.log(`偷好友积分 开始查询第${i}页好友\n`); await getFriends(i); $.allFriends = $.getFriendsData.datas; - await stealFriendCoinFun(); + if ($.allFriends) await stealFriendCoinFun(); } for (let i = 1; i <= new Array(lastPage).fill('').length; i++) { if ($.stealStatus === 'chance_full') { @@ -168,7 +168,7 @@ async function jdJoySteal() { console.log(`偷好友狗粮 开始查询第${i}页好友\n`); await getFriends(i); $.allFriends = $.getFriendsData.datas; - await stealFriendsFood(); + if ($.allFriends) await stealFriendsFood(); } for (let i = 1; i <= new Array(lastPage).fill('').length; i++) { if ($.help_feed >= 200 || ($.helpFeedStatus && $.helpFeedStatus === 'chance_full')) { @@ -188,7 +188,7 @@ async function jdJoySteal() { console.log(`帮好友喂食 开始查询第${i}页好友\n`); await getFriends(i); $.allFriends = $.getFriendsData.datas; - await helpFriendsFeed(); + if ($.allFriends) await helpFriendsFeed(); } } } else {