Cgi接口调整
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user