|
@@ -493,11 +493,18 @@
|
|
|
}
|
|
|
} else {
|
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
|
+ setTimeout(() => {
|
|
|
+ clearInterval(intervaler);
|
|
|
+ quit();
|
|
|
+ }, 3000);
|
|
|
}
|
|
|
} else if (res.status === 5200) {
|
|
|
if (timeInterval > 7) {
|
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
|
timerInterval = clearTimeout()
|
|
|
+ setTimeout(() => {
|
|
|
+ quit();
|
|
|
+ }, 3000)
|
|
|
return
|
|
|
}
|
|
|
timerInterval = setTimeout(() => {
|
|
@@ -1074,7 +1081,7 @@
|
|
|
decodeWoker.postMessage('close');
|
|
|
decodeWoker.terminate();
|
|
|
quit();
|
|
|
- })
|
|
|
+ }, 3000);
|
|
|
}
|
|
|
};
|
|
|
}
|