PXY管控添加重定向功能

This commit is contained in:
wangxin
2018-07-06 14:47:55 +08:00
parent ac38c85b6b
commit 807b82e8c9
8 changed files with 231 additions and 10 deletions

View File

@@ -31,10 +31,15 @@ public class BaseCfg<T> extends BaseEntity<T> implements Cloneable{
protected String showName;//表在界面上展示的名称 protected String showName;//表在界面上展示的名称
protected String seltype;//选中类型,页面搜索用 protected String seltype;//选中类型,页面搜索用
protected String tableName; protected String tableName;
@ExcelField(title="userregion1")
protected String userRegion1; protected String userRegion1;
@ExcelField(title="userregion2")
protected String userRegion2; protected String userRegion2;
@ExcelField(title="userregion3")
protected String userRegion3; protected String userRegion3;
@ExcelField(title="userregion4")
protected String userRegion4; protected String userRegion4;
@ExcelField(title="userregion5")
protected String userRegion5; protected String userRegion5;
/** /**
* 编译id * 编译id

View File

@@ -47,7 +47,82 @@ public class IpCfgTemplate {
private Integer ratelimit;//21 private Integer ratelimit;//21
private Integer dnsStrategyId;//22 private Integer dnsStrategyId;//22
private Integer irType;//23 private Integer irType;//23
private String userRegion1;//77
private String userRegion2;//78
private String userRegion3;//79
private String userRegion4;//80
private String userRegion5;//81
/**
* userRegion1
* @return userRegion1
*/
@ExcelField(title="userregion1",align=2,sort=77)
public String getUserRegion1() {
return userRegion1;
}
/**
* @param userRegion1 the userRegion1 to set
*/
public void setUserRegion1(String userRegion1) {
this.userRegion1 = userRegion1;
}
/**
* userRegion2
* @return userRegion2
*/
@ExcelField(title="userregion2",align=2,sort=78)
public String getUserRegion2() {
return userRegion2;
}
/**
* @param userRegion2 the userRegion2 to set
*/
public void setUserRegion2(String userRegion2) {
this.userRegion2 = userRegion2;
}
/**
* userRegion3
* @return userRegion3
*/
@ExcelField(title="userregion3",align=2,sort=79)
public String getUserRegion3() {
return userRegion3;
}
/**
* @param userRegion3 the userRegion3 to set
*/
public void setUserRegion3(String userRegion3) {
this.userRegion3 = userRegion3;
}
/**
* userRegion4
* @return userRegion4
*/
@ExcelField(title="userregion4",align=2,sort=80)
public String getUserRegion4() {
return userRegion4;
}
/**
* @param userRegion4 the userRegion4 to set
*/
public void setUserRegion4(String userRegion4) {
this.userRegion4 = userRegion4;
}
/**
* userRegion5
* @return userRegion5
*/
@ExcelField(title="userregion5",align=2,sort=81)
public String getUserRegion5() {
return userRegion5;
}
/**
* @param userRegion5 the userRegion5 to set
*/
public void setUserRegion5(String userRegion5) {
this.userRegion5 = userRegion5;
}
/** /**
* ratelimit * ratelimit
* @return ratelimit * @return ratelimit

View File

@@ -37,6 +37,11 @@
<result column="ratelimit" property="ratelimit" jdbcType="INTEGER" /> <result column="ratelimit" property="ratelimit" jdbcType="INTEGER" />
<result column="dns_strategy_id" property="dnsStrategyId" jdbcType="INTEGER" /> <result column="dns_strategy_id" property="dnsStrategyId" jdbcType="INTEGER" />
<result column="ir_type" property="irType" jdbcType="INTEGER" /> <result column="ir_type" property="irType" jdbcType="INTEGER" />
<result column="user_region1" property="userRegion1" jdbcType="VARCHAR" />
<result column="user_region2" property="userRegion2" jdbcType="VARCHAR" />
<result column="user_region3" property="userRegion3" jdbcType="VARCHAR" />
<result column="user_region4" property="userRegion4" jdbcType="VARCHAR" />
<result column="user_region5" property="userRegion5" jdbcType="VARCHAR" />
</resultMap> </resultMap>
<resultMap id="BaseIpMapWithUser" type="com.nis.domain.configuration.BaseIpCfg" extends="BaseIpMap" > <resultMap id="BaseIpMapWithUser" type="com.nis.domain.configuration.BaseIpCfg" extends="BaseIpMap" >
<result column="creator_name" property="creatorName" jdbcType="VARCHAR" /> <result column="creator_name" property="creatorName" jdbcType="VARCHAR" />
@@ -50,14 +55,14 @@
DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT, DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT,
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME, CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY, SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT,DNS_STRATEGY_ID,IR_TYPE ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT,DNS_STRATEGY_ID,IR_TYPE,USER_REGION1,USER_REGION2,USER_REGION3,USER_REGION4,USER_REGION5
</sql> </sql>
<sql id="BaseIpCfg_Column_List_with_id_name" > <sql id="BaseIpCfg_Column_List_with_id_name" >
CFG_ID, CFG_DESC,CFG_REGION_CODE,CFG_TYPE, IP_TYPE, IP_PATTERN, SRC_IP_ADDRESS,DEST_IP_ADDRESS, PORT_PATTERN,SRC_PORT,DEST_PORT, CFG_ID, CFG_DESC,CFG_REGION_CODE,CFG_TYPE, IP_TYPE, IP_PATTERN, SRC_IP_ADDRESS,DEST_IP_ADDRESS, PORT_PATTERN,SRC_PORT,DEST_PORT,
DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT, DIRECTION,PROTOCOL,PROTOCOL_ID,ACTION,IS_VALID,IS_AUDIT,
CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME, CREATOR_ID,CREATE_TIME,EDITOR_ID,EDIT_TIME,AUDITOR_ID,AUDIT_TIME,
SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY, SERVICE_ID,REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,CLASSIFY,
ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT,DNS_STRATEGY_ID,IR_TYPE ATTRIBUTE,LABLE,AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT,DNS_STRATEGY_ID,IR_TYPE,USER_REGION1,USER_REGION2,USER_REGION3,USER_REGION4,USER_REGION5
</sql> </sql>
<sql id="BaseIpCfg_Column_List_with_id_alias" > <sql id="BaseIpCfg_Column_List_with_id_alias" >
<choose> <choose>
@@ -68,7 +73,12 @@
${page.alias}.CREATOR_ID as creatorId,${page.alias}.CREATE_TIME AS createTime,${page.alias}.EDITOR_ID as editorId,${page.alias}.EDIT_TIME AS editTime,${page.alias}.AUDITOR_ID as auditorId,${page.alias}.AUDIT_TIME AS auditTime, ${page.alias}.CREATOR_ID as creatorId,${page.alias}.CREATE_TIME AS createTime,${page.alias}.EDITOR_ID as editorId,${page.alias}.EDIT_TIME AS editTime,${page.alias}.AUDITOR_ID as auditorId,${page.alias}.AUDIT_TIME AS auditTime,
${page.alias}.SERVICE_ID as serviceId,${page.alias}.REQUEST_ID AS requestId,${page.alias}.COMPILE_ID AS compileId,${page.alias}.IS_AREA_EFFECTIVE as isAreaEffective,${page.alias}.classify, ${page.alias}.SERVICE_ID as serviceId,${page.alias}.REQUEST_ID AS requestId,${page.alias}.COMPILE_ID AS compileId,${page.alias}.IS_AREA_EFFECTIVE as isAreaEffective,${page.alias}.classify,
${page.alias}.ATTRIBUTE AS attribute,${page.alias}.LABLE AS lable,${page.alias}.AREA_EFFECTIVE_IDS AS areaEffectiveIds,${page.alias}.FUNCTION_ID AS functionId,${page.alias}.RATELIMIT AS ratelimit, ${page.alias}.ATTRIBUTE AS attribute,${page.alias}.LABLE AS lable,${page.alias}.AREA_EFFECTIVE_IDS AS areaEffectiveIds,${page.alias}.FUNCTION_ID AS functionId,${page.alias}.RATELIMIT AS ratelimit,
${page.alias}.DNS_STRATEGY_ID AS dnsStrategyId,${page.alias}.IR_TYPE AS irType ${page.alias}.DNS_STRATEGY_ID AS dnsStrategyId,${page.alias}.IR_TYPE AS irType,
${page.alias}.USER_REGION1 AS userRegion1,
${page.alias}.USER_REGION2 AS userRegion2,
${page.alias}.USER_REGION3 AS userRegion3,
${page.alias}.USER_REGION4 AS userRegion4,
${page.alias}.USER_REGION5 AS userRegion5
</when> </when>
<otherwise> <otherwise>
r.CFG_ID as cfgId, r.CFG_DESC as cfgDesc,r.CFG_REGION_CODE as cfgRegionCode,r.CFG_TYPE as cfgType, r.IP_TYPE as ipType, r.CFG_ID as cfgId, r.CFG_DESC as cfgDesc,r.CFG_REGION_CODE as cfgRegionCode,r.CFG_TYPE as cfgType, r.IP_TYPE as ipType,
@@ -77,7 +87,12 @@
r.CREATOR_ID as creatorId,r.CREATE_TIME AS createTime,r.EDITOR_ID as editorId,r.EDIT_TIME AS editTime,r.AUDITOR_ID as auditorId,r.AUDIT_TIME AS auditTime, r.CREATOR_ID as creatorId,r.CREATE_TIME AS createTime,r.EDITOR_ID as editorId,r.EDIT_TIME AS editTime,r.AUDITOR_ID as auditorId,r.AUDIT_TIME AS auditTime,
r.SERVICE_ID as serviceId,r.REQUEST_ID AS requestId,r.COMPILE_ID AS compileId,r.IS_AREA_EFFECTIVE as isAreaEffective,r.classify, r.SERVICE_ID as serviceId,r.REQUEST_ID AS requestId,r.COMPILE_ID AS compileId,r.IS_AREA_EFFECTIVE as isAreaEffective,r.classify,
r.ATTRIBUTE AS attribute,r.LABLE AS lable,r.AREA_EFFECTIVE_IDS AS areaEffectiveIds,r.FUNCTION_ID as functionId,r.RATELIMIT AS ratelimit, r.ATTRIBUTE AS attribute,r.LABLE AS lable,r.AREA_EFFECTIVE_IDS AS areaEffectiveIds,r.FUNCTION_ID as functionId,r.RATELIMIT AS ratelimit,
r.DNS_STRATEGY_ID AS dnsStrategyId,r.IR_TYPE AS irType r.DNS_STRATEGY_ID AS dnsStrategyId,r.IR_TYPE AS irType,
r.USER_REGION1 AS userRegion1,
r.USER_REGION2 AS userRegion2,
r.USER_REGION3 AS userRegion3,
r.USER_REGION4 AS userRegion4,
r.USER_REGION5 AS userRegion5
</otherwise> </otherwise>
</choose> </choose>
</sql> </sql>
@@ -92,7 +107,7 @@
REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE, REQUEST_ID,COMPILE_ID,IS_AREA_EFFECTIVE,
CLASSIFY,ATTRIBUTE,LABLE, CLASSIFY,ATTRIBUTE,LABLE,
AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT, AREA_EFFECTIVE_IDS,FUNCTION_ID,RATELIMIT,
DNS_STRATEGY_ID,IR_TYPE DNS_STRATEGY_ID,IR_TYPE,USER_REGION1,USER_REGION2,USER_REGION3,USER_REGION4,USER_REGION5
</sql> </sql>
<sql id="BaseIpCfg_Value_List" > <sql id="BaseIpCfg_Value_List" >
#{cfgDesc,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER},#{cfgType,jdbcType=VARCHAR}, #{cfgDesc,jdbcType=VARCHAR},#{cfgRegionCode,jdbcType=INTEGER},#{cfgType,jdbcType=VARCHAR},
@@ -105,7 +120,12 @@
#{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER}, #{requestId,jdbcType=INTEGER},#{compileId,jdbcType=INTEGER},#{isAreaEffective,jdbcType=INTEGER},
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR}, #{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
#{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{ratelimit,jdbcType=INTEGER}, #{areaEffectiveIds,jdbcType=VARCHAR}, #{functionId,jdbcType=INTEGER}, #{ratelimit,jdbcType=INTEGER},
#{dnsStrategyId,jdbcType=INTEGER},#{irType,jdbcType=INTEGER} #{dnsStrategyId,jdbcType=INTEGER},#{irType,jdbcType=INTEGER},
#{userRegion1,jdbcType=VARCHAR},
#{userRegion2,jdbcType=VARCHAR},
#{userRegion3,jdbcType=VARCHAR},
#{userRegion4,jdbcType=VARCHAR},
#{userRegion5,jdbcType=VARCHAR}
</sql> </sql>
<select id="getById" resultMap="BaseIpMap" parameterType="java.lang.Long" > <select id="getById" resultMap="BaseIpMap" parameterType="java.lang.Long" >
SELECT SELECT
@@ -282,6 +302,21 @@
<if test="irType != null"> <if test="irType != null">
AND ${page.alias}.IR_TYPE=#{irType,jdbcType=INTEGER} AND ${page.alias}.IR_TYPE=#{irType,jdbcType=INTEGER}
</if> </if>
<if test="userRegion1 != null">
AND ${page.alias}.USER_REGION1=#{userRegion1,jdbcType=VARCHAR}
</if>
<if test="userRegion2 != null">
AND ${page.alias}.USER_REGION2=#{userRegion2,jdbcType=VARCHAR}
</if>
<if test="userRegion3 != null">
AND ${page.alias}.USER_REGION3=#{userRegion3,jdbcType=VARCHAR}
</if>
<if test="userRegion4 != null">
AND ${page.alias}.USER_REGION4=#{userRegion4,jdbcType=VARCHAR}
</if>
<if test="userRegion5 != null">
AND ${page.alias}.USER_REGION5=#{userRegion5,jdbcType=VARCHAR}
</if>
</when> </when>
<otherwise> <otherwise>
<if test="cfgId != null"> <if test="cfgId != null">
@@ -392,6 +427,21 @@
<if test="irType != null"> <if test="irType != null">
AND r.IR_TYPE=#{irType,jdbcType=INTEGER} AND r.IR_TYPE=#{irType,jdbcType=INTEGER}
</if> </if>
<if test="userRegion1 != null">
AND r.USER_REGION1=#{userRegion1,jdbcType=VARCHAR}
</if>
<if test="userRegion2 != null">
AND r.USER_REGION2=#{userRegion2,jdbcType=VARCHAR}
</if>
<if test="userRegion3 != null">
AND r.USER_REGION3=#{userRegion3,jdbcType=VARCHAR}
</if>
<if test="userRegion4 != null">
AND r.USER_REGION4=#{userRegion4,jdbcType=VARCHAR}
</if>
<if test="userRegion5 != null">
AND r.USER_REGION5=#{userRegion5,jdbcType=VARCHAR}
</if>
</otherwise> </otherwise>
</choose> </choose>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
@@ -547,6 +597,21 @@
<if test="irType != null"> <if test="irType != null">
IR_TYPE=#{irType,jdbcType=INTEGER}, IR_TYPE=#{irType,jdbcType=INTEGER},
</if> </if>
<if test="userRegion1 != null">
USER_REGION1=#{userRegion1,jdbcType=VARCHAR},
</if>
<if test="userRegion2 != null">
USER_REGION2=#{userRegion2,jdbcType=VARCHAR},
</if>
<if test="userRegion3 != null">
USER_REGION3=#{userRegion3,jdbcType=VARCHAR},
</if>
<if test="userRegion4 != null">
USER_REGION4=#{userRegion4,jdbcType=VARCHAR},
</if>
<if test="userRegion5 != null">
USER_REGION5=#{userRegion5,jdbcType=VARCHAR},
</if>
</trim> </trim>
</set> </set>
where cfg_id = #{cfgId,jdbcType=BIGINT} where cfg_id = #{cfgId,jdbcType=BIGINT}
@@ -595,7 +660,7 @@
r.CREATOR_ID as creatorId,r.CREATE_TIME AS createTime,r.EDITOR_ID as editorId,r.EDIT_TIME AS editTime,r.AUDITOR_ID as auditorId,r.AUDIT_TIME AS auditTime, r.CREATOR_ID as creatorId,r.CREATE_TIME AS createTime,r.EDITOR_ID as editorId,r.EDIT_TIME AS editTime,r.AUDITOR_ID as auditorId,r.AUDIT_TIME AS auditTime,
r.SERVICE_ID as serviceId,r.REQUEST_ID AS requestId,r.COMPILE_ID AS compileId,r.IS_AREA_EFFECTIVE as isAreaEffective,r.classify, r.SERVICE_ID as serviceId,r.REQUEST_ID AS requestId,r.COMPILE_ID AS compileId,r.IS_AREA_EFFECTIVE as isAreaEffective,r.classify,
r.ATTRIBUTE AS attribute,r.LABLE AS lable,r.AREA_EFFECTIVE_IDS AS areaEffectiveIds,r.FUNCTION_ID as functionId,r.RATELIMIT AS ratelimit, r.ATTRIBUTE AS attribute,r.LABLE AS lable,r.AREA_EFFECTIVE_IDS AS areaEffectiveIds,r.FUNCTION_ID as functionId,r.RATELIMIT AS ratelimit,
r.DNS_STRATEGY_ID AS dnsStrategyId,r.IR_TYPE AS irType r.DNS_STRATEGY_ID AS dnsStrategyId,r.IR_TYPE AS irType,r.USER_REGION1 AS userRegion1,r.USER_REGION2 AS userRegion2,r.USER_REGION3 AS userRegion3,r.USER_REGION4 AS userRegion4,r.USER_REGION5 AS userRegion5
, s.name as creator_name,e.name as editor_name,u.name as auditor_name , s.name as creator_name,e.name as editor_name,u.name as auditor_name
,ri.request_title as requestName,po.group_name as group_name ,ri.request_title as requestName,po.group_name as group_name
from ${tableName} r from ${tableName} r

View File

@@ -722,4 +722,11 @@ not_number=%s is not a number
id_not_exists=the id %s of %s is not valid id_not_exists=the id %s of %s is not valid
num_split_by_comma=%s must be numbers split by comma num_split_by_comma=%s must be numbers split by comma
must_be=%s must be %s must_be=%s must be %s
#=============some validation=========== #=============some validation===========
#=============userregions===============
userregion1=user region 1
userregion2=user region 2
userregion3=user region 3
userregion4=user region 4
userregion5=user region 5
#=============userregions===============

View File

@@ -706,4 +706,11 @@ not_number=%s is not a number
id_not_exists=the id %s of %s is not valid id_not_exists=the id %s of %s is not valid
num_split_by_comma=%s must be numbers split by comma num_split_by_comma=%s must be numbers split by comma
must_be=%s must be %s must_be=%s must be %s
#=============some validation=========== #=============some validation===========
#=============userregions===============
userregion1=user region 1
userregion2=user region 2
userregion3=user region 3
userregion4=user region 4
userregion5=user region 5
#=============userregions===============

View File

@@ -823,4 +823,11 @@ prohibition_access=\u7981\u6B62\u8BBF\u95EE
not_allowed_method=\u4E0D\u5141\u8BB8\u6B64\u65B9\u6CD5\u8BBF\u95EE not_allowed_method=\u4E0D\u5141\u8BB8\u6B64\u65B9\u6CD5\u8BBF\u95EE
law_prohibition_access=\u7531\u4E8E\u6CD5\u5F8B\u539F\u56E0\u4E0D\u53EF\u7528 law_prohibition_access=\u7531\u4E8E\u6CD5\u5F8B\u539F\u56E0\u4E0D\u53EF\u7528
redirect_content=\u91CD\u5B9A\u5411\u5185\u5BB9 redirect_content=\u91CD\u5B9A\u5411\u5185\u5BB9
#=============region_value,config form title================= #=============region_value,config form title=================
#=============userregions===============
userregion1=\u81EA\u5B9A\u4E49\u57DF1
userregion2=\u81EA\u5B9A\u4E49\u57DF2
userregion3=\u81EA\u5B9A\u4E49\u57DF3
userregion4=\u81EA\u5B9A\u4E49\u57DF4
userregion5=\u81EA\u5B9A\u4E49\u57DF5
#=============userregions===============

View File

@@ -36,6 +36,17 @@ $(function(){
$("#serviceId").val($(".action:checked").attr("serviceId")); $("#serviceId").val($(".action:checked").attr("serviceId"));
$("#protocolId").val($(".action:checked").attr("protocolId")); $("#protocolId").val($(".action:checked").attr("protocolId"));
} }
if($("select[name='userRegion1']")){
$("select[name='userRegion1']").on("change",function(){
var code = $(this).val();
if(code.indexOf("30")==0){//以30开头的应答码需要输入URL地址
$("input[name='userRegion2']").addClass("url");
}else{
$("input[name='userRegion2']").removeClass("url");
}
});
}
$("#ipCfgFrom").validate({ $("#ipCfgFrom").validate({
errorPlacement: function(error,element){ errorPlacement: function(error,element){
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error); $(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
@@ -194,6 +205,36 @@ $(function(){
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="${specialProtocol!=null and specialProtocol eq 'pxyIpControl'}">
<div class="row">
<div class="col-md-6">
<div class="form-group ">
<label class="control-label col-md-3"><font color="red">*</font>
<spring:message code="REDIRECT_RESPONSE_CODE" /></label>
<div class="col-md-6">
<select name="userRegion1"
class="selectpicker select2 form-control required">
<c:forEach items="${fns:getDictList('REDIRECT_RESPONSE_CODE')}" var="responseCode">
<option value="${responseCode.itemValue}" <c:if test="${_cfg.userRegion1==responseCode.itemValue}">selected</c:if>><spring:message code="${responseCode.itemCode}"/></option>
</c:forEach>
</select>
</div>
<div for="userRegion1"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><spring:message
code="redirect_content" /></label>
<div class="col-md-6">
<input class="form-control" type="text" name="userRegion2"
value="${_cfg.userRegion2}">
</div>
<div for="userRegion2"></div>
</div>
</div>
</div>
</c:if>
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %> <%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %> <%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
</div> </div>

View File

@@ -232,6 +232,10 @@
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}"> <c:if test="${specialFunctionId ne null and specialFunctionId eq 'ipratelimit'}">
<th><spring:message code="ratelimit"/></th> <th><spring:message code="ratelimit"/></th>
</c:if> </c:if>
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'pxyIpControl'}">
<th><spring:message code="REDIRECT_RESPONSE_CODE"/></th>
<th><spring:message code="redirect_content"/></th>
</c:if>
<th><spring:message code="letter"/></th> <th><spring:message code="letter"/></th>
<th><spring:message code="type"/></th> <th><spring:message code="type"/></th>
<th><spring:message code="attribute"/></th> <th><spring:message code="attribute"/></th>
@@ -298,6 +302,16 @@
<c:if test="${cfg.ratelimit ne null}">${cfg.ratelimit}%</c:if> <c:if test="${cfg.ratelimit ne null}">${cfg.ratelimit}%</c:if>
</td> </td>
</c:if> </c:if>
<c:if test="${specialFunctionId ne null and specialFunctionId eq 'pxyIpControl'}">
<td>
<c:forEach items="${fns:getDictList('REDIRECT_RESPONSE_CODE')}" var="codeC">
<c:if test="${codeC.itemValue eq cfg.userRegion1}">
<spring:message code="${codeC.itemCode}" />
</c:if>
</c:forEach>
</td>
<td>${cfg.userRegion2 }</td>
</c:if>
<td>${cfg.requestName }</td> <td>${cfg.requestName }</td>
<td> <td>
<c:set var="classify"></c:set> <c:set var="classify"></c:set>