1、修改非maat配置取消接口请求参数;
2、添加maat配置 配置存储接口中service与action对应关系验证
This commit is contained in:
@@ -681,9 +681,11 @@ public class CompileVal {
|
||||
|
||||
public static String serviceConfigCompileVal(ConfigCompile configCompile) {
|
||||
Long compileId = configCompile.getCompileId();
|
||||
if (configCompile.getAction() != 1 && configCompile.getAction() != 2 && configCompile.getAction() != 5
|
||||
&& configCompile.getAction() != 6 && configCompile.getAction() != 7) {
|
||||
return "编译配置id为" + compileId + "的配置中action的值只能是1(阻断),2(监测),5(封堵白名单),6(监测白名单),7(封堵监测都白名单)";
|
||||
Integer action = ServiceAndRDBIndexReal.getActionByService(configCompile.getService());
|
||||
if (StringUtil.isEmpty(action)){
|
||||
return "编译配置id为" + compileId + "的配置中service的值为"+configCompile.getService()+"时action不存在";
|
||||
}else if(action.compareTo(configCompile.getAction())!=0) {
|
||||
return "编译配置id为" + compileId + "的配置中service的值为"+configCompile.getService()+"时action只能为"+action;
|
||||
}
|
||||
if (configCompile.getDoBlacklist() != 1) {
|
||||
return "编译配置id为" + compileId + "的配置中doBlacklist的值只能是1";
|
||||
|
||||
Reference in New Issue
Block a user