From 249565ef6de1b44f984f33e4dd4281014837051a Mon Sep 17 00:00:00 2001 From: yys <47@gamerwa.com> Date: Fri, 3 Apr 2026 22:28:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/ai/service/impl/ByteDeptApiKeyServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-api/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteDeptApiKeyServiceImpl.java b/web-api/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteDeptApiKeyServiceImpl.java index 7c43316..08f0e87 100644 --- a/web-api/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteDeptApiKeyServiceImpl.java +++ b/web-api/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteDeptApiKeyServiceImpl.java @@ -131,7 +131,8 @@ public class ByteDeptApiKeyServiceImpl implements IByteDeptApiKeyService { } if (parts.length == 2) { try { - return Long.parseLong(parts[1].trim()); +// return Long.parseLong(parts[1].trim()); + return userDept.getDeptId(); } catch (NumberFormatException ignored) { return userDept.getDeptId(); }