打开下发配置交互代码

This commit is contained in:
wangwei
2019-05-24 11:23:07 +08:00
parent 062161826e
commit 8b2a692aeb

View File

@@ -124,10 +124,10 @@ public class ProxyFileHijackService extends BaseService {
logger.info("劫持文件配置下发配置参数:"+json);
//调用服务接口下发配置
try {
//ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json);
/*if(result!=null){
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json);
if(result!=null){
logger.info("劫持文件配置下发响应信息:"+result.getMsg());
}*/
}
} catch (Exception e) {
logger.error("劫持文件配置配置下发失败",e);
throw e;
@@ -141,8 +141,8 @@ public class ProxyFileHijackService extends BaseService {
logger.info("劫持文件配置配置参数:"+json);
//调用服务接口取消配置
try {
/*ToMaatResult result = ConfigServiceUtil.put(json, 2);
logger.info("劫持文件配置响应信息:"+result.getMsg());*/
ToMaatResult result = ConfigServiceUtil.put(json, 2);
logger.info("劫持文件配置响应信息:"+result.getMsg());
} catch (Exception e) {
e.printStackTrace();
logger.info("劫持文件置配置失败");