修复因不做加购任务,导致死循环的bug
This commit is contained in:
@ -137,6 +137,7 @@ async function jump() {
|
|||||||
while ($.oneJumpInfo.userInfo.diceLeft > 0 && flag) {
|
while ($.oneJumpInfo.userInfo.diceLeft > 0 && flag) {
|
||||||
//丢骰子
|
//丢骰子
|
||||||
await throwDice();
|
await throwDice();
|
||||||
|
if ($.gridType && ($.gridType === 'boom' || $.gridType === 'road_block')) break;
|
||||||
await $.wait(3000);
|
await $.wait(3000);
|
||||||
switch ($.gridType) {
|
switch ($.gridType) {
|
||||||
case 'give_dice':
|
case 'give_dice':
|
||||||
@ -158,6 +159,7 @@ async function jump() {
|
|||||||
case 'follow_channel':
|
case 'follow_channel':
|
||||||
case 'scan_good':
|
case 'scan_good':
|
||||||
case 'add_cart':
|
case 'add_cart':
|
||||||
|
break;
|
||||||
case 'join_member':
|
case 'join_member':
|
||||||
case 'boom':
|
case 'boom':
|
||||||
case 'road_block':
|
case 'road_block':
|
||||||
@ -249,7 +251,7 @@ async function throwDice() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.logErr(e, resp)
|
$.logErr(e, resp)
|
||||||
} finally {
|
} finally {
|
||||||
resolve();
|
resolve($.gridType);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user