From 9788d4c6fd36c1c574ac25a6581d91b634387ebc Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 06 十二月 2024 16:07:54 +0800
Subject: [PATCH] RunScheduleModuleTask.java

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java
index a475c21..2f328a9 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java
@@ -22,11 +22,10 @@
             if (token!= null) {
                 requestTemplate.header(HttpHeaders.AUTHORIZATION, token);
             }
-        }
-
-        Long tenantId = IailabClient.getTenantId();
-        if (tenantId != null) {
-            requestTemplate.header("tenant-id", String.valueOf(tenantId));
+            Long tenantId = IailabClient.getTenantId();
+            if (tenantId != null) {
+                requestTemplate.header("tenant-id", String.valueOf(tenantId));
+            }
         }
     }
 

--
Gitblit v1.9.3