fix: 获取第二部门时的错误

This commit is contained in:
yys 2026-04-03 22:28:07 +08:00
parent c2c1ff8063
commit 249565ef6d
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ public class ByteDeptApiKeyServiceImpl implements IByteDeptApiKeyService {
} }
if (parts.length == 2) { if (parts.length == 2) {
try { try {
return Long.parseLong(parts[1].trim()); // return Long.parseLong(parts[1].trim());
return userDept.getDeptId();
} catch (NumberFormatException ignored) { } catch (NumberFormatException ignored) {
return userDept.getDeptId(); return userDept.getDeptId();
} }