Cgi接口调整

This commit is contained in:
leijun
2018-11-29 14:06:47 +08:00
parent 7eececadca
commit 4edab49209
6 changed files with 60 additions and 166 deletions

View File

@@ -400,16 +400,8 @@ public class HttpClientUtil {
//获取响应结果
Builder header = wt.request(MediaType.APPLICATION_JSON).header("Content-Type", MediaType.APPLICATION_JSON);
response= header.get();
int status = response.getStatus();
if (status == HttpStatus.SC_OK) {
result= response.readEntity(String.class);
result = galaxyMessageFormat(result);
logger.info("获取消息成功,相应内容如下: " + result);
} else {
logger.error("获取消息失败,相应内容如下: " + result);
throw new MaatConvertException(status+"");
}
result= response.readEntity(String.class);
logger.info("获取消息成功,相应内容如下: " + result);
} catch (Exception e) {
e.printStackTrace();
logger.error("获取消息失败,相应内容如下: " + result);