From be23c07b2b7f24544a9675046e9d1cce4c4d1743 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Fri, 18 Dec 2020 09:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=81=B7=E5=A5=BD=E5=8F=8B?= =?UTF-8?q?=E7=8B=97=E7=B2=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_joy_steal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jd_joy_steal.js b/jd_joy_steal.js index eb0859ac..f456f286 100644 --- a/jd_joy_steal.js +++ b/jd_joy_steal.js @@ -140,6 +140,9 @@ async function stealFriendsFood() { if (getRandomFoodRes && getRandomFoodRes.success) { if (getRandomFoodRes.errorCode === 'steal_ok') { $.stealFood += getRandomFoodRes.data; + } else if (getRandomFoodRes.errorCode === 'chance_full') { + console.log('偷好友狗粮已达上限,跳出循环'); + break; } } } else if (stealStatus === 'chance_full') {