本地提交至服务
This commit is contained in:
@@ -200,7 +200,7 @@ public class NtcDnsResStrategy {
|
|||||||
this.cfgId = cfgId;
|
this.cfgId = cfgId;
|
||||||
}
|
}
|
||||||
public void init() {
|
public void init() {
|
||||||
resGroup2Id=0;
|
resGroup2Id=0;
|
||||||
resGroup2Num=0;
|
resGroup2Num=0;
|
||||||
resGroup3Id=0;
|
resGroup3Id=0;
|
||||||
resGroup3Num=0;
|
resGroup3Num=0;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class DnsResStrategyController extends BaseController {
|
|||||||
String ids,
|
String ids,
|
||||||
@ModelAttribute("cfg")DnsResStrategy cfg
|
@ModelAttribute("cfg")DnsResStrategy cfg
|
||||||
,RedirectAttributes redirectAttributes){
|
,RedirectAttributes redirectAttributes){
|
||||||
try {
|
try {
|
||||||
if(cfg == null){
|
if(cfg == null){
|
||||||
cfg=new DnsResStrategy();
|
cfg=new DnsResStrategy();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -503,7 +503,7 @@ public abstract class BaseService {
|
|||||||
//ip转换为callback用ip
|
//ip转换为callback用ip
|
||||||
public NtcDnsResStrategy convertCallBackDnsResStrategy(DnsResStrategy cfg){
|
public NtcDnsResStrategy convertCallBackDnsResStrategy(DnsResStrategy cfg){
|
||||||
NtcDnsResStrategy resStrategy=new NtcDnsResStrategy();
|
NtcDnsResStrategy resStrategy=new NtcDnsResStrategy();
|
||||||
resStrategy.init();
|
resStrategy.init();
|
||||||
resStrategy.setId(Long.valueOf(cfg.getCompileId()));
|
resStrategy.setId(Long.valueOf(cfg.getCompileId()));
|
||||||
resStrategy.setCfgId(cfg.getCompileId());
|
resStrategy.setCfgId(cfg.getCompileId());
|
||||||
resStrategy.setReqStrateId(cfg.getCfgId());
|
resStrategy.setReqStrateId(cfg.getCfgId());
|
||||||
|
|||||||
@@ -700,6 +700,6 @@ policy_number=policy number
|
|||||||
policy_name=policy name
|
policy_name=policy name
|
||||||
min_ttl=min ttl
|
min_ttl=min ttl
|
||||||
max_ttl=max ttl
|
max_ttl=max ttl
|
||||||
ttl_unit=unit/s
|
ttl_unit=unit/s
|
||||||
res_group_num=response number
|
res_group_num=response number
|
||||||
#=============about Maintenance=========
|
#=============about Maintenance=========
|
||||||
@@ -684,6 +684,6 @@ policy_number=policy number
|
|||||||
policy_name=policy name
|
policy_name=policy name
|
||||||
min_ttl=min ttl
|
min_ttl=min ttl
|
||||||
max_ttl=max ttl
|
max_ttl=max ttl
|
||||||
ttl_unit=unit/s
|
ttl_unit=unit/s
|
||||||
res_group_num=response number
|
res_group_num=response number
|
||||||
#=============about Maintenance=========
|
#=============about Maintenance=========
|
||||||
@@ -737,6 +737,6 @@ policy_number=\u7B56\u7565\u53F7
|
|||||||
policy_name=\u7B56\u7565\u540D\u79F0
|
policy_name=\u7B56\u7565\u540D\u79F0
|
||||||
min_ttl=\u6700\u5C0F\u5B58\u6D3B\u65F6\u95F4
|
min_ttl=\u6700\u5C0F\u5B58\u6D3B\u65F6\u95F4
|
||||||
max_ttl=\u6700\u5927\u5B58\u6D3B\u65F6\u95F4
|
max_ttl=\u6700\u5927\u5B58\u6D3B\u65F6\u95F4
|
||||||
ttl_unit=\u5355\u4F4D/\u79D2
|
ttl_unit=\u5355\u4F4D/\u79D2
|
||||||
res_group_num=\u5E94\u7B54\u6570
|
res_group_num=\u5E94\u7B54\u6570
|
||||||
#=============about Maintenance=========
|
#=============about Maintenance=========
|
||||||
@@ -147,7 +147,7 @@ $(function(){
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="max_ttl"/></label>
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="max_ttl"/></label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input class="form-control required number" placeholder="<spring:message code="ttl_unit" />" type="text" name="maxTtl" value="${_cfg.maxTtl}">
|
<input class="form-control required number" placeholder="<spring:message code="ttl_unit" />" type="text" name="maxTtl" value="${_cfg.maxTtl}">
|
||||||
</div>
|
</div>
|
||||||
<div for="maxTtl"></div>
|
<div for="maxTtl"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -258,7 +258,7 @@
|
|||||||
<th><spring:message code="policy_number"/></th>
|
<th><spring:message code="policy_number"/></th>
|
||||||
<th><spring:message code="policy_name"/></th>
|
<th><spring:message code="policy_name"/></th>
|
||||||
<th><spring:message code="group_name"/></th>
|
<th><spring:message code="group_name"/></th>
|
||||||
<th><spring:message code="res_group_num"/></th>
|
<th><spring:message code="res_group_num"/></th>
|
||||||
<th><spring:message code="min_ttl"/></th>
|
<th><spring:message code="min_ttl"/></th>
|
||||||
<th><spring:message code="max_ttl"/></th>
|
<th><spring:message code="max_ttl"/></th>
|
||||||
<th><spring:message code="block_type"/></th>
|
<th><spring:message code="block_type"/></th>
|
||||||
|
|||||||
Reference in New Issue
Block a user