优化偷好友狗粮功能

This commit is contained in:
lxk0301
2020-12-18 09:23:52 +08:00
parent e74e08d808
commit 93d31bbdc5

View File

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