From 81be73b65d72cb2e61b31ec30a9a1b81c242e671 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 14 二月 2022 17:01:48 +0800 Subject: [PATCH] [BUG] [todo 135269] 修正Eservice的登入帳號是否成功登入的檢核 --- pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java b/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java index 06c3fe0..54391f0 100644 --- a/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java +++ b/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java @@ -8,7 +8,6 @@ import com.pollex.pam.security.token.EServiceAuthenticationToken; import com.pollex.pam.service.LoginRecordService; import com.pollex.pam.service.dto.EServiceResponse; -import com.pollex.pam.service.util.HttpRequestUtil; import com.pollex.pam.web.rest.errors.EServiceErrorException; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; @@ -43,7 +42,7 @@ @Component public class EServiceAuthenticationProvider { - private static final String E_SERVICE_LOGIN_SUCCESS_CODE = "0"; + private static final String E_SERVICE_LOGIN_SUCCESS_CODE = "true"; private static final Logger log = LoggerFactory.getLogger(EServiceAuthenticationProvider.class); @Autowired @@ -70,7 +69,7 @@ EServiceResponse eServiceResponse = responseEntity.getBody(); log.debug("eService response = {}", eServiceResponse); - if(E_SERVICE_LOGIN_SUCCESS_CODE.equals(eServiceResponse.getCode())){ + if(E_SERVICE_LOGIN_SUCCESS_CODE.equals(eServiceResponse.getIssuccess())){ loginRecordService.saveEServiceLoginSuccessRecord(account); return getConsultantToken(account, credentials); } -- Gitblit v1.8.0