From 46059e342d70b51bd9775f30feb5f29304bda6ac Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 19 九月 2022 17:15:04 +0800 Subject: [PATCH] 2022-09-19 --- src/api/index.js | 14 +++++++++++--- src/tabviews/zshare/actionList/normalbutton/index.jsx | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 95cb833..c5353f8 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -564,7 +564,11 @@ param.userid = sessionStorage.getItem('CloudUserID') || '' param.LoginUID = sessionStorage.getItem('CloudLoginUID') || '' } else if (window.GLOB.mainSystemApi) { - url = window.GLOB.mainSystemApi + if (!window.GLOB.transfer) { + url = window.GLOB.mainSystemApi + } else { + param.rduri = window.GLOB.mainSystemApi + } } param = this.encryptParam(param) @@ -594,7 +598,11 @@ param.LoginUID = sessionStorage.getItem('CloudLoginUID') || '' } } else if (window.GLOB.mainSystemApi) { - url = window.GLOB.mainSystemApi + if (!window.GLOB.transfer) { + url = window.GLOB.mainSystemApi + } else { + param.rduri = window.GLOB.mainSystemApi + } } let _param = JSON.parse(JSON.stringify(param)) // 缂撳瓨鏍¢獙锛屽幓闄ゆ椂闂村拰鍔犲瘑瀛楃 @@ -742,7 +750,7 @@ param.appkey = window.GLOB.appkey || '' let url = '/webapi/dostars' - if (param.rduri) { + if (param.rduri && !window.GLOB.transfer) { url = param.rduri delete param.rduri } diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index 73750e3..7b31de2 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -2021,6 +2021,12 @@ }) } }) + } else if (re.errcode !== 0 && re.errmsg) { + notification.warning({ + top: 92, + message: re.errmsg, + duration: 5 + }) } }) }) -- Gitblit v1.8.0