保誠-保戶業務員媒合平台
Tomas
2022-07-20 38d7cc3ee70e1de015ea03ee3f1330be0054b6c7
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',
@@ -66,8 +66,13 @@
function showErrorMessageBox(error: any): void {
  setTimeout(() => {
    console.log('errorerrorerror', error.config);
    // 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: