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;