From cefc2c5ad32eddb94998f8ffc759f1fd8806e56e Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期四, 10 二月 2022 12:33:31 +0800
Subject: [PATCH] [update] 因應需求並不會有全台選項,因此移除其資料,並將嚴選配對的搜尋修正

---
 pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java |    6 +++---
 1 files changed, 3 insertions(+), 3 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..868901a 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/OtpUtilService.java
+++ b/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);

--
Gitblit v1.8.0