mirror of https://gitee.com/stylefeng/guns
【7.6.0】删掉ProjectUtil的引用
parent
7b7d7ea362
commit
2efe68b33f
|
@ -13,7 +13,6 @@ import cn.stylefeng.roses.kernel.rule.exception.enums.defaults.DefaultBusinessEx
|
||||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ErrorResponseData;
|
import cn.stylefeng.roses.kernel.rule.pojo.response.ErrorResponseData;
|
||||||
import cn.stylefeng.roses.kernel.rule.util.ExceptionUtil;
|
import cn.stylefeng.roses.kernel.rule.util.ExceptionUtil;
|
||||||
import cn.stylefeng.roses.kernel.rule.util.HttpServletUtil;
|
import cn.stylefeng.roses.kernel.rule.util.HttpServletUtil;
|
||||||
import cn.stylefeng.roses.kernel.rule.util.ProjectUtil;
|
|
||||||
import cn.stylefeng.roses.kernel.rule.util.ResponseRenderUtil;
|
import cn.stylefeng.roses.kernel.rule.util.ResponseRenderUtil;
|
||||||
import cn.stylefeng.roses.kernel.validator.api.exception.ParamValidateException;
|
import cn.stylefeng.roses.kernel.validator.api.exception.ParamValidateException;
|
||||||
import cn.stylefeng.roses.kernel.validator.api.exception.enums.ValidatorExceptionEnum;
|
import cn.stylefeng.roses.kernel.validator.api.exception.enums.ValidatorExceptionEnum;
|
||||||
|
@ -360,16 +359,10 @@ public class GlobalExceptionHandler {
|
||||||
* @since 2021/5/18 10:48
|
* @since 2021/5/18 10:48
|
||||||
*/
|
*/
|
||||||
private String renderLoginResult(HttpServletResponse response, AuthException authException, Model model) {
|
private String renderLoginResult(HttpServletResponse response, AuthException authException, Model model) {
|
||||||
|
response.setHeader("Guns-Session-Timeout", "true");
|
||||||
if (ProjectUtil.getSeparationFlag()) {
|
ErrorResponseData<?> errorResponseData = renderJson(authException.getErrorCode(), authException.getUserTip(), authException);
|
||||||
response.setHeader("Guns-Session-Timeout", "true");
|
ResponseRenderUtil.renderJsonResponse(response, errorResponseData);
|
||||||
ErrorResponseData<?> errorResponseData = renderJson(authException.getErrorCode(), authException.getUserTip(), authException);
|
return null;
|
||||||
ResponseRenderUtil.renderJsonResponse(response, errorResponseData);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
model.addAttribute("tips", authException.getUserTip());
|
|
||||||
return "/login.html";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue