| | |
| | | loginLog.setReason(e.getMessage().length() > 200 ? (e.getMessage().substring(0, 190) + "...") : e.getMessage()); |
| | | loginLog.setSuccess(Constants.ONE); |
| | | systemLoginLogService.create(loginLog); |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(),e.getCause().getMessage()); |
| | | if (e.getCause() instanceof BusinessException) { |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), e.getCause().getMessage()); |
| | | } |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT.getCode(), "提示对不起,账号或密码错误!"); |
| | | } |
| | | } |
| | | |