|
|
@@ -4,6 +4,7 @@ import com.kym.common.R;
|
|
|
import com.kym.entity.enplus.response.EnResponse;
|
|
|
import org.springframework.core.MethodParameter;
|
|
|
import org.springframework.http.MediaType;
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.http.server.ServerHttpRequest;
|
|
|
import org.springframework.http.server.ServerHttpResponse;
|
|
|
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
|
|
@@ -34,8 +35,8 @@ public class ResponseResultHandler implements ResponseBodyAdvice {
|
|
|
public Object beforeBodyWrite(Object body, MethodParameter returnType, MediaType selectedContentType,
|
|
|
Class selectedConverterType, ServerHttpRequest request, ServerHttpResponse response) {
|
|
|
|
|
|
- // 响应给en+的信息不做处理
|
|
|
- if (body instanceof R<?> || body instanceof EnResponse) {
|
|
|
+ // 响应给en+,微信的信息不做处理
|
|
|
+ if (body instanceof R<?> || body instanceof EnResponse || body instanceof ResponseEntity.BodyBuilder) {
|
|
|
return body;
|
|
|
} else if (body == null) {
|
|
|
return R.success();
|