|
@@ -54,11 +54,10 @@ public class APIResponseAdvice implements ResponseBodyAdvice<Object> {
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 拦截未知的运行时异常
|
|
|
*
|
|
|
- * @author fengshuonan
|
|
|
- * @date 2020/12/16 15:12
|
|
|
*/
|
|
|
@ExceptionHandler(Throwable.class)
|
|
|
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
|
@@ -125,6 +124,7 @@ public class APIResponseAdvice implements ResponseBodyAdvice<Object> {
|
|
|
msg = responseMsg.value();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (null == body) {
|
|
|
APINoDataResponse apiResponse = new APINoDataResponse();
|
|
|
|