|
@@ -37,9 +37,6 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
@Override
|
|
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) {
|
|
|
- if (ShutDownController.getServerIsUpdating()) {
|
|
|
- throw new BizException(ExceptionEnum.SERVER_IS_UPDATE, "服务器正在升级。");
|
|
|
- }
|
|
|
HandlerMethod handlerMethod;
|
|
|
try {
|
|
|
handlerMethod = (HandlerMethod) object;
|
|
@@ -78,6 +75,8 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
|
|
|
log.info("请求参数: {}", request.getQueryString());
|
|
|
throw new BizException(ExceptionEnum.TOKEN_ERROR);
|
|
|
}
|
|
|
+
|
|
|
+ // todo 线上报错这个dao类,连接数据库超时,但是使用了 passtoken的接口是正常返回的
|
|
|
String password = dao.getPasswordByCode(code);
|
|
|
if (StringUtil.isBlank(password)) {
|
|
|
throw new BizException(ExceptionEnum.USER_NOT_EXIST);
|