From dd218fe745d2d6370c9f42643788d0a209bb18d9 Mon Sep 17 00:00:00 2001 From: youngS Date: Wed, 11 Aug 2021 18:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E4=BC=A0=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/utils/index.js | 11 ++++++++++- fir_client/vue.config.js | 6 ++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/fir_client/src/utils/index.js b/fir_client/src/utils/index.js index fdf0b9c..44a2ad5 100644 --- a/fir_client/src/utils/index.js +++ b/fir_client/src/utils/index.js @@ -137,7 +137,16 @@ export function uploadaliyunoss(file, certinfo, app, successcallback, processcal let retryCount = 0; - let retryCountMax = 5; + let partSize= 1024 * 1024; + + let f_count = Math.floor(file.size/partSize); + + if(f_count > 200){ + f_count=Math.floor(f_count*0.3) + }else { + f_count = 60 + } + let retryCountMax = 5 + f_count; let currentCheckpoint; const progress = async function progress(p, checkpoint) { currentCheckpoint = checkpoint; diff --git a/fir_client/vue.config.js b/fir_client/vue.config.js index c5203c5..d38a930 100644 --- a/fir_client/vue.config.js +++ b/fir_client/vue.config.js @@ -82,12 +82,14 @@ if (page) { } } +const version='1.2.6'; + const pro_base_env = { baseUrl: 'https://flyapps.cn', index_static: 'https://static.flyapps.cn/index/', baseShortUrl: 'https://flyapps.top', short_static: 'https://static.flyapps.top/short/', - version: '1.2.5', + version: version, }; const dev_base_env = { @@ -95,7 +97,7 @@ const dev_base_env = { baseShortUrl: 'https://app.hehelucky.cn', short_static: '/', index_static: '/', - version: '1.2.5', + version: version, }; let base_evn = dev_base_env;