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(); }