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') {