From b25c2200f2dd0c4e5a7c50329912d25365e28da5 Mon Sep 17 00:00:00 2001 From: huqi Date: Thu, 24 Nov 2022 13:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E4=BB=A3=E7=A0=81=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=9B=E5=A2=9E=E5=8A=A0=E4=BA=86=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=85=8D=E7=BD=AE-=E5=8D=95=E7=82=B9=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/o2_core/scriptWorker.js | 16 ++++++++++++++-- .../x_component_systemconfig/public/lp/en.js | 7 ++++++- .../x_component_systemconfig/public/lp/zh-cn.js | 7 ++++++- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/o2web/source/o2_core/scriptWorker.js b/o2web/source/o2_core/scriptWorker.js index 7529bec5ac..dcc5769a05 100644 --- a/o2web/source/o2_core/scriptWorker.js +++ b/o2web/source/o2_core/scriptWorker.js @@ -328,7 +328,13 @@ layout.addReady(function(){ Object.keys(o).each(function (key) { if (key!="__type__"){ var keyType = typeOf(o[key]); - var oRange = Object.clone(range); + // var oRange = Object.clone(range); + var oRange = { + endColumn: range.endColumn, + endLineNumber: range.endLineNumber, + startColumn: range.startColumn, + startLineNumber: range.startLineNumber + } switch (keyType){ case "function": var count = o[key].length; @@ -380,7 +386,13 @@ layout.addReady(function(){ Object.keys(o).each(function(key){ if (key!="__type__"){ var keyType = typeOf(o[key]); - var oRange = (range) ? Object.clone(range): null; + var oRange = (range) ? (function(){ + var o = {}; + Object.keys(range).each(function(k){ + o[k] = range[k]; + }); + return o; + })() : null; var offset = 0; switch (keyType){ case "function": diff --git a/o2web/source/x_component_systemconfig/public/lp/en.js b/o2web/source/x_component_systemconfig/public/lp/en.js index 1cf14732c8..d5a667f918 100644 --- a/o2web/source/x_component_systemconfig/public/lp/en.js +++ b/o2web/source/x_component_systemconfig/public/lp/en.js @@ -433,7 +433,12 @@ o2.xApplication.systemconfig.LP = { "useSSOConfigInfo2": "2、外部系统需要调用O2OA平台的接口服务;", "useSSOConfigInfo3": "需要将鉴权的名称,密钥告知外部系统,外部系统采取3DES算法使用密钥对\"person#timestamp\"文本进行加密,获取到访问O2OA的临时票据(token)。
" + "person:表示指定用户的用户名、唯一编码或员工号。(具体使用哪个要根据外部系统与O2OA的用户关联的字段)
" + - "timestamp:表示为1970年1月1日0时0秒到当前时间的毫秒数。(为了确保token的时效性,有效时间为15分钟)
", + "timestamp:表示为1970年1月1日0时0秒到当前时间的毫秒数。(为了确保token的时效性,有效时间为15分钟)

" + + "生成token后,外部系统可以直接通过访问以下地址,实现与O2OA的单点认证:
" + + "http://servername/x_desktop/sso.html?client={client}&xtoken={token}&redirect={redirect}
" + + "client表示使用的鉴权名称;
" + + "token表示产生的临时票据token;
" + + "redirect表示认证成功后要跳转到的地址;
", "useSSOConfigInfo4": "更多有关鉴权配置的说明,请点击此处查看。", diff --git a/o2web/source/x_component_systemconfig/public/lp/zh-cn.js b/o2web/source/x_component_systemconfig/public/lp/zh-cn.js index e47cf815ac..bd3583eebf 100644 --- a/o2web/source/x_component_systemconfig/public/lp/zh-cn.js +++ b/o2web/source/x_component_systemconfig/public/lp/zh-cn.js @@ -440,7 +440,12 @@ o2.xApplication.systemconfig.LP = { "useSSOConfigInfo2": "2、外部系统需要调用O2OA平台的接口服务;", "useSSOConfigInfo3": "需要将鉴权的名称,密钥告知外部系统,外部系统采取3DES算法使用密钥对\"person#timestamp\"文本进行加密,获取到访问O2OA的临时票据(token)。
" + "person:表示指定用户的用户名、唯一编码或员工号。(具体使用哪个要根据外部系统与O2OA的用户关联的字段)
" + - "timestamp:表示为1970年1月1日0时0秒到当前时间的毫秒数。(为了确保token的时效性,有效时间为15分钟)
", + "timestamp:表示为1970年1月1日0时0秒到当前时间的毫秒数。(为了确保token的时效性,有效时间为15分钟)

" + + "生成token后,外部系统可以直接通过访问以下地址,实现与O2OA的单点认证:
" + + "http://servername/x_desktop/sso.html?client={client}&xtoken={token}&redirect={redirect}
" + + "client表示使用的鉴权名称;
" + + "token表示产生的临时票据token;
" + + "redirect表示认证成功后要跳转到的地址;
", "useSSOConfigInfo4": "更多有关鉴权配置的说明,请点击此处查看。", -- GitLab