mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
优化偷好友狗粮功能
This commit is contained in:
parent
1b0cc51c20
commit
db4e7510ef
@ -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') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user