From 129e7dde5da351e111c53d34b7dfa0d4c1f896ef Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Tue, 08 Dec 2020 10:09:53 +0800 Subject: [PATCH] 添加网页版获取单台设备一个小时AQI接口以及获取单台设备的某一个传感器月平均值 --- src/main/java/com/moral/common/exceptionHandler/WebAuthExceptionHandler.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moral/common/exceptionHandler/WebAuthExceptionHandler.java b/src/main/java/com/moral/common/exceptionHandler/WebAuthExceptionHandler.java index 77a7643..a17e65d 100644 --- a/src/main/java/com/moral/common/exceptionHandler/WebAuthExceptionHandler.java +++ b/src/main/java/com/moral/common/exceptionHandler/WebAuthExceptionHandler.java @@ -6,14 +6,21 @@ import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestControllerAdvice; +import javax.servlet.http.HttpServletResponse; import java.util.HashMap; import java.util.Map; - +/** +* @Description: Web��������������������� + * @Param: + * @return: + * @Author: ��������� + * @Date: 2020/9/16 + */ @RestControllerAdvice public class WebAuthExceptionHandler { @ExceptionHandler(WebAuthException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) - public Map<String,Object> handlerWebAuthException(WebAuthException e){ + public Map<String,Object> handlerWebAuthException(WebAuthException e, HttpServletResponse response){ Map<String,Object> result = new HashMap<>(); result.put("msg",e.getMessage()); result.put("accountId", -1); -- Gitblit v1.8.0