From 259beab5e89790d7cf58e5b19281e94ebc6f2c8a Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 06 十二月 2024 12:00:19 +0800
Subject: [PATCH] token

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignTokenInterceptor.java |    7 +++----
 1 files changed, 3 insertions(+), 4 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 7a2bbbb..a475c21 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
@@ -19,10 +19,9 @@
         if (token == null) {
             // 如果没有获取到Token,从system-server中获取token
             token = IailabClient.getToken();
-        }
-
-        if (token!= null) {
-            requestTemplate.header(HttpHeaders.AUTHORIZATION, token);
+            if (token!= null) {
+                requestTemplate.header(HttpHeaders.AUTHORIZATION, token);
+            }
         }
 
         Long tenantId = IailabClient.getTenantId();

--
Gitblit v1.9.3