From 7399f0a087f14e0525ed0f891288b2e1650f5f36 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 19 九月 2022 21:32:45 +0800
Subject: [PATCH] fix#144075: [前台] 顧問帳號已停用,登入後會跳出登入逾時視窗

---
 PAMapp/shared/services/httpClient.ts |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/PAMapp/shared/services/httpClient.ts b/PAMapp/shared/services/httpClient.ts
index 46171ec..c0b08f2 100644
--- a/PAMapp/shared/services/httpClient.ts
+++ b/PAMapp/shared/services/httpClient.ts
@@ -6,6 +6,7 @@
 
 const notRequireInterceptorErrorUrl = [
   '/otp/verify',
+  // '/otp/sendOtp',
   '/eService/authenticate',
   '/login/validate/get_img_code',
   '/login/validate/verify_img_code',
@@ -65,6 +66,12 @@
 
 function showErrorMessageBox(error: any): void {
   setTimeout(() => {
+    // NOTE: 甇斤 HOT FIX 憿批��憭望������暹��� dialog [Tomas, 2022/7/20 14:21]
+    if(error.config.url.includes('/eService/authenticate')) return;
+    if (error.config.url.includes('/otp/sendOtp')) {
+      messageBoxService.showErrorMessage('', error);
+      return
+    }
     if (!_.includes(notRequireInterceptorErrorUrl, error.config.url)) {
       switch (error.response.status) {
         case 401:

--
Gitblit v1.8.0