|
@@ -272,6 +272,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
|
|
|
|
|
|
HttpHeaders headers = response.getHeaders();
|
|
HttpHeaders headers = response.getHeaders();
|
|
MediaType contentType = headers.getContentType();
|
|
MediaType contentType = headers.getContentType();
|
|
|
|
+ log.info("返回类型="+contentType.toString());
|
|
if(MediaType.APPLICATION_JSON.isCompatibleWith(contentType)){
|
|
if(MediaType.APPLICATION_JSON.isCompatibleWith(contentType)){
|
|
JSONObject result = JSON.parseObject(responseResult);
|
|
JSONObject result = JSON.parseObject(responseResult);
|
|
String message = result.getString("message");
|
|
String message = result.getString("message");
|