修复IP Spoofing失效下发至服务端
This commit is contained in:
@@ -858,6 +858,38 @@ public class SchedulerTaskUtil {
|
||||
}else{
|
||||
return false;
|
||||
}*/
|
||||
|
||||
//ip spoofing
|
||||
if(serviceId.equals(518)){
|
||||
entity.setCompileId(compileId);
|
||||
List<CfgIndexInfo> list = configSynchronizationDao.getCfgIndexList(entity);
|
||||
entity.setCompileId(compileId);
|
||||
for(CfgIndexInfo cfg:list){
|
||||
if(isValid==0){
|
||||
PxyObjSpoofingIpPool pool=new PxyObjSpoofingIpPool();
|
||||
pool.setCfgId(Long.valueOf(cfg.getUserRegion3()));
|
||||
pool = configSynchronizationDao.getPxyObjSpoofingIpPool(pool.getCfgId());
|
||||
List<PxyObjSpoofingIpPool> poolList = new ArrayList<PxyObjSpoofingIpPool>();
|
||||
pool.setIsValid(0);
|
||||
pool.setCompileId(pool.getCompileId());
|
||||
pool.setServiceId(pool.getServiceId());
|
||||
poolList.add(pool);
|
||||
//调用服务接口取消配置
|
||||
String json=BaseService.gsonToJson(poolList);
|
||||
logger.info("欺骗IP池配置配置参数:"+json);
|
||||
//调用服务接口取消配置
|
||||
try {
|
||||
ToMaatResult result = ConfigServiceUtil.put(json, 2);
|
||||
logger.info("欺骗IP池配置响应信息:"+result.getMsg());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.info("欺骗IP池配置配置失败");
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
maatCfg = new MaatCfg();
|
||||
maatCfg.initDefaultValue();
|
||||
maatBean = new ToMaatBean();
|
||||
|
||||
Reference in New Issue
Block a user