From 4b467effbc0e3a9199146573c0ceedf404bd07c5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 九月 2023 17:16:01 +0800 Subject: [PATCH] 2023-09-07 --- src/api/index.js | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index ff77975..e6b983c 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -82,7 +82,6 @@ /** * @description 浣跨敤dostar鎺ュ彛锛岃烦杩囬獙璇� - * @param {Object} param 鏌ヨ鍙婃彁浜ゅ弬鏁� */ dostarInterface (param) { param.userid = param.userid || '' @@ -522,11 +521,7 @@ param.appkey = param.appkey || window.GLOB.appkey let url = '/webapi/dostars' - if (window.GLOB.mkHS && window.GLOB.cloudServiceApi) { // HS涓嬶紝涓斿瓨鍦ㄤ簯绔湴鍧� - url = window.GLOB.cloudServiceApi - param.userid = sessionStorage.getItem('CloudUserID') || '' - param.LoginUID = sessionStorage.getItem('CloudLoginUID') || '' - } else if (window.GLOB.mainSystemApi) { + if (window.GLOB.mainSystemApi) { if (!window.GLOB.transfer) { url = window.GLOB.mainSystemApi } else { @@ -554,13 +549,7 @@ param.appkey = param.appkey || window.GLOB.appkey || '' let url = '/webapi/dostars' - if (window.GLOB.mkHS) { // HS涓嬶紝鍗曠偣鐧诲綍鏈嶅姟鍣ㄤ负浜戠 - if (window.GLOB.cloudServiceApi) { // 瀛樺湪浜戠鍦板潃鏃讹紝浣跨敤浜戠绯荤粺鍙傛暟 - url = window.GLOB.cloudServiceApi - param.userid = sessionStorage.getItem('CloudUserID') || '' - param.LoginUID = sessionStorage.getItem('CloudLoginUID') || '' - } - } else if (window.GLOB.mainSystemApi) { + if (window.GLOB.mainSystemApi) { if (!window.GLOB.transfer) { url = window.GLOB.mainSystemApi } else { @@ -877,7 +866,7 @@ let time = +sessionStorage.getItem(rduri) let c_time = Math.round(new Date().getTime() / 1000) - if (time && c_time - time <= 60) { + if (time && c_time - time <= 1800) { sessionStorage.setItem(rduri, c_time) return axios({ url: `${url}${param.func ? '/' + param.func : ''}`, -- Gitblit v1.8.0