refactor: 移除网络超时相关逻辑,简化错误处理
This commit is contained in:
@@ -66,9 +66,8 @@
|
||||
? detailPattern.test(text)
|
||||
: false;
|
||||
const maxCheckAttemptsBlocked = /max_check_attempts/i.test(text);
|
||||
const operationTimedOutBlocked = /operation\s+timed\s+out/i.test(text);
|
||||
|
||||
if (!titleMatched && !detailMatched && !maxCheckAttemptsBlocked && !operationTimedOutBlocked) {
|
||||
if (!titleMatched && !detailMatched && !maxCheckAttemptsBlocked) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -80,7 +79,6 @@
|
||||
titleMatched,
|
||||
detailMatched,
|
||||
maxCheckAttemptsBlocked,
|
||||
operationTimedOutBlocked,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -146,12 +144,6 @@
|
||||
);
|
||||
}
|
||||
|
||||
if (retryState.operationTimedOutBlocked) {
|
||||
throw new Error(
|
||||
'NETWORK_TIMEOUT_BLOCKED::请检查当前网络节点是否稳定,若你使用的代理 /VPN 节点无延迟过高问题,请换一个服务器继续使用此邮箱继续登陆'
|
||||
);
|
||||
}
|
||||
|
||||
if (retryState.retryButton && retryState.retryEnabled) {
|
||||
clickCount += 1;
|
||||
if (typeof log === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user