From a73d553513855e3bf6b0b0366b79c4b9f4028f6f Mon Sep 17 00:00:00 2001 From: st Date: Mon, 4 Jan 2021 13:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9proxyHost=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_Setting/Document.js | 6 ++++++ o2web/source/x_component_Setting/lp/zh-cn.js | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/o2web/source/x_component_Setting/Document.js b/o2web/source/x_component_Setting/Document.js index c51f67c2cf..66ae045214 100644 --- a/o2web/source/x_component_Setting/Document.js +++ b/o2web/source/x_component_Setting/Document.js @@ -729,6 +729,12 @@ MWF.xApplication.Setting.Document.List.ItemEditor = new Class({ }else{ values[k] = value; } + if(k === "proxyHost"){ + if(value.indexOf("http")>-1){ + flag = false; + this.app.notice(this.lp.list.infoProxyHost, "error"); + } + } } }.bind(this)); diff --git a/o2web/source/x_component_Setting/lp/zh-cn.js b/o2web/source/x_component_Setting/lp/zh-cn.js index 2c0f9bedd9..1afa660afb 100644 --- a/o2web/source/x_component_Setting/lp/zh-cn.js +++ b/o2web/source/x_component_Setting/lp/zh-cn.js @@ -267,7 +267,9 @@ MWF.xApplication.Setting.LP = { "infoParameter": "请求信息方法参数", "infoMethod": "请求信息方法(GET或POST)", "infoType": "info信息格式(json或form)", - "infoCredentialField": "info信息中用于标识个人的字段" + "infoCredentialField": "info信息中用于标识个人的字段", + + "infoProxyHost" : "域名不需要包含http" }, "module": { -- GitLab