(1)Maat审核结果去掉configCompileList的相关json识别

(2)IP白名单审核提交
This commit is contained in:
wangxin
2018-05-29 18:51:56 +08:00
parent 3ff6acb8c8
commit 302f418e61
2 changed files with 62 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
import org.glassfish.jersey.media.multipart.FormDataMultiPart;
import org.glassfish.jersey.media.multipart.file.FileDataBodyPart;
@@ -144,7 +145,9 @@ public class ConfigServiceUtil {
Response response= header.post(Entity.entity(params, MediaType.APPLICATION_JSON));
if( response.getStatus() == 200){
result= response.readEntity(String.class);
JSONObject resObject = JSONObject.fromObject(result);
JsonConfig config=new JsonConfig();
config.setExcludes(new String[]{"configCompileList"});
JSONObject resObject = JSONObject.fromObject(result,config);
bean = (ToMaatResult) JSONObject.toBean(resObject,ToMaatResult.class);
}else{
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+response.readEntity(String.class));