From 0f934413d0a05c46553509217ea5423e3e308e69 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sat, 2 Jan 2021 20:47:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=B0=83=E6=95=B4axios?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/site/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/site/tools.js b/src/lib/site/tools.js index 31b91df..bdaeb6f 100644 --- a/src/lib/site/tools.js +++ b/src/lib/site/tools.js @@ -16,10 +16,10 @@ const ElectronProxyAgent = require('electron-proxy-agent') // 请求超时时限 // axios.defaults.timeout = 10000 // 可能使用代理,增长超时 -const TIMEOUT = 6000 +const TIMEOUT = 20000 -// 重试次数,共请求3次 -axios.defaults.retry = 2 +// 重试次数,共请求2次 +axios.defaults.retry = 1 // 请求的间隙 axios.defaults.retryDelay = 1000