From c983d4642b2aeeceb6442badaebd1b7bab7943eb Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 15 二月 2024 16:52:14 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/AuthController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/AuthController.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/AuthController.java
index a957f20..bfb8500 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/AuthController.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/controller/AuthController.java
@@ -56,7 +56,7 @@
             return R.error("瀵嗙爜閿欒");
         }
         userLoginService.saveAsync(user.getId(), UserLogin.TYPE_LOGIN, null, hostId, request);
-        String accessToken = JwtUtil.buildToken(new JwtSubject(username, hostId),
+        String accessToken = JwtUtil.buildToken(new JwtSubject(username, user.getHostId()),
                 configProperties.getTokenExpireTime(), configProperties.getTokenKey());
         return R.ok("鐧诲綍鎴愬姛").add(new LoginResult(accessToken, user));
     }

--
Gitblit v1.9.1