From fa782dca2a00e9a4a48c5b3588f5eb3b47af93cf Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期二, 01 三月 2022 15:41:05 +0800 Subject: [PATCH] [update] [todo 136031] 諮詢度表現,提供前端該顧問所有預約單數量以及近一個月的預約單數量 --- pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java b/pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java index a0d7494..9736d8e 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java @@ -28,9 +28,6 @@ @Autowired OtpTmpService otpTmpService; - @Autowired - LoginRecordService loginRecordService; - @Transactional public void verifyOtp(VerifyOtpVM verifyOtpParam) { verifyOtp(verifyOtpParam.getAccount(), verifyOtpParam.getIndexKey(), verifyOtpParam.getOtpCode()); @@ -43,15 +40,13 @@ } 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()); - loginRecordService.saveOTPLoginFailRecord(account, otpResponseDTO.getFailReason()); - throw new OtpLoginFailException(otpResponseDTO.getFailReason()); + log.info("otp login fail... , account = {}, error code = {}, failReason = {}", account, otpResponseDTO.getFailCode(), otpResponseDTO.getFailReason()); + throw new OtpLoginFailException(otpResponseDTO.getFailCode()); } } - loginRecordService.saveOTPLoginSuccessRecord(account); setVerrifiedOtpTmp(account, indexKey); } -- Gitblit v1.8.0