保誠-保戶業務員媒合平台
wayne
2022-02-08 463ba2f5b7e5ae094c33b1692a74b7f7aa58aad5
pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java
@@ -43,12 +43,12 @@
        } else {  // otp logon
            OtpResponseDTO otpResponseDTO = otpWebService.verifyOTP(indexKey, otpCode);
            if (otpResponseDTO.isSuccess()) {
                log.info("otp login success!");
                log.info("otp login success!, account = {}", account);
            }
            else {
                log.info("otp login fail... , account = {}, failReason = {}", account, otpResponseDTO.getFailReason());
                log.info("otp login fail... , account = {}, error code = {}, failReason = {}", account, otpResponseDTO.getFailCode(), otpResponseDTO.getFailReason());
                loginRecordService.saveOTPLoginFailRecord(account, otpResponseDTO.getFailReason());
                throw new OtpLoginFailException(otpResponseDTO.getFailReason());
                throw new OtpLoginFailException(otpResponseDTO.getFailCode());
            }
        }
        loginRecordService.saveOTPLoginSuccessRecord(account);