From 7aa71d78c64b1698ded0f32470488f4268051621 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 九月 2023 17:19:54 +0800 Subject: [PATCH] 2023-09-05 --- src/tabviews/zshare/actionList/normalbutton/index.jsx | 101 +++++++++++++++++++++++--------------------------- 1 files changed, 47 insertions(+), 54 deletions(-) diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx index dcceb12..a3785f0 100644 --- a/src/tabviews/zshare/actionList/normalbutton/index.jsx +++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx @@ -1531,9 +1531,11 @@ } }) + keys = keys.join(',') + lines.push({ - table: tb, - insert: `Insert into ${pre}${tb} (${keys.join(',')},[mk_level],[mk_id],[mk_bid])`, + table: md5(tb + keys), + insert: `Insert into ${pre}${tb} (${keys},[mk_level],[mk_id],[mk_bid])`, select: `Select ${vals.join(',')},'${level}','${id}','${bid}'` }) @@ -1617,19 +1619,17 @@ sql = sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`) sql = sql.replace(/@typename@/ig, `'admin'`) + if (sessionStorage.getItem('dataM') === 'true') { // 鏁版嵁鏉冮檺 + sql = sql.replace(/\$@/ig, '/*').replace(/@\$/ig, '*/').replace(/@datam@/ig, '\'Y\'') + } else { + sql = sql.replace(/@\$|\$@/ig, '').replace(/@datam@/ig, '\'\'') + } + if (window.GLOB.debugger === true) { console.info(sql.replace(/\n\s{8}/ig, '\n')) } param.LText = sql - - if (sessionStorage.getItem('dataM') === 'true') { // 鏁版嵁鏉冮檺 - param.LText = param.LText.replace(/\$@/ig, '/*').replace(/@\$/ig, '*/').replace(/@datam@/ig, '\'Y\'') - } else { - param.LText = param.LText.replace(/@\$|\$@/ig, '').replace(/@datam@/ig, '\'\'') - } - param.LText = param.LText.replace(/\$check@|@check\$/ig, '') - param.exec_type = 'y' // 鍚庡彴瑙g爜 param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') param.secretkey = Utils.encrypt('', param.timestamp) @@ -1838,52 +1838,43 @@ if (btn.outerFunc) { result.func = btn.outerFunc } - if (window.GLOB.mkHS) { - if (btn.outerFunc === 's_app_version_upt') { // special 鏇存柊鐗堟湰鍙锋椂璁块棶sso - if (window.GLOB.mainSystemApi) { - result.rduri = window.GLOB.mainSystemApi - } - } else if (btn.sysInterface === 'true' && window.GLOB.cloudServiceApi) { - result.rduri = window.GLOB.cloudServiceApi - result.userid = sessionStorage.getItem('CloudUserID') || '' - result.LoginUID = sessionStorage.getItem('CloudLoginUID') || '' - } else if (btn.sysInterface !== 'true') { - if (window.GLOB.systemType === 'production' && btn.proInterface) { - result.rduri = btn.proInterface - } else { - result.rduri = btn.interface - } + + if (btn.sysInterface === 'true') { + if (window.GLOB.mainSystemApi) { + result.rduri = window.GLOB.mainSystemApi + } + } else if (btn.sysInterface === 'external') { + if (window.GLOB.systemType === 'production') { + result.$token = btn.exProInterface || '' + } else { + result.$token = btn.exInterface || '' + } + ver_token = true + } else { + if (window.GLOB.systemType === 'production' && btn.proInterface) { + result.rduri = btn.proInterface + } else { + result.rduri = btn.interface } - // special 鍑芥暟 s_sDataDictb_TBBack 浜戠楠岃瘉 - if (result.func === 's_sDataDictb_TBBack' && result.LTextOut) { + let host = window.GLOB.baseurl.replace(/http(s):\/\//, '') + if (result.rduri.indexOf(host) === -1 && /\/dostars/.test(result.rduri)) { + result.$login = true + } + } + + if (window.GLOB.mkHS) { + if (result.func === 's_app_version_upt') { // special 鏇存柊鐗堟湰鍙锋椂璁块棶sso + delete result.rduri + if (window.GLOB.localSystemApi) { + result.rduri = window.GLOB.localSystemApi + } + result.userid = sessionStorage.getItem('LocalUserID') || '' + result.LoginUID = sessionStorage.getItem('LocalLoginUID') || '' + } else if (result.func === 's_sDataDictb_TBBack' && result.LTextOut) { // special 鍑芥暟 s_sDataDictb_TBBack 浜戠楠岃瘉 result.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') result.secretkey = Utils.encrypt(result.LTextOut, result.timestamp) result.open_key = Utils.encryptOpenKey(result.secretkey, result.timestamp) - } - } else { - if (btn.sysInterface === 'true') { - if (window.GLOB.mainSystemApi) { - result.rduri = window.GLOB.mainSystemApi - } - } else if (btn.sysInterface === 'external') { - if (window.GLOB.systemType === 'production') { - result.$token = btn.exProInterface || '' - } else { - result.$token = btn.exInterface || '' - } - ver_token = true - } else { - if (window.GLOB.systemType === 'production' && btn.proInterface) { - result.rduri = btn.proInterface - } else { - result.rduri = btn.interface - } - - let host = window.GLOB.baseurl.replace(/http(s):\/\//, '') - if (result.rduri.indexOf(host) === -1 && /\/dostars/.test(result.rduri)) { - result.$login = true - } } } @@ -2011,10 +2002,12 @@ callParam.open_key = Utils.encryptOpenKey(callParam.secretkey, callParam.timestamp) } - if (callParam.UpType === 'SSO' && window.GLOB.mainSystemApi) { - ssoParam = fromJS(callParam).toJS() + callParam.userid = sessionStorage.getItem('LocalUserID') || '' + callParam.LoginUID = sessionStorage.getItem('LocalLoginUID') || '' - ssoParam.rduri = window.GLOB.mainSystemApi + if (callParam.UpType === 'SSO' && window.GLOB.localSystemApi) { + ssoParam = fromJS(callParam).toJS() + ssoParam.rduri = window.GLOB.localSystemApi delete ssoParam.UpType } else { -- Gitblit v1.8.0