From 2997c9c3c2af641f802abcc4dd5433a0b74864a4 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 04 八月 2022 08:09:57 +0800
Subject: [PATCH] clean: 刪除測試使用的 console.log

---
 PAMapp/shared/services/httpClient.ts |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/PAMapp/shared/services/httpClient.ts b/PAMapp/shared/services/httpClient.ts
index 7441584..7fa0491 100644
--- a/PAMapp/shared/services/httpClient.ts
+++ b/PAMapp/shared/services/httpClient.ts
@@ -6,7 +6,7 @@
 
 const notRequireInterceptorErrorUrl = [
   '/otp/verify',
-  '/otp/sendOtp',
+  // '/otp/sendOtp',
   '/eService/authenticate',
   '/login/validate/get_img_code',
   '/login/validate/verify_img_code',
@@ -67,7 +67,11 @@
 function showErrorMessageBox(error: any): void {
   setTimeout(() => {
     // NOTE: 甇斤 HOT FIX 憿批��憭望������暹��� dialog [Tomas, 2022/7/20 14:21]
-    if(error.config.url.include('api/eService/authenticate')) return;
+    if(error.config.url.includes('api/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