xf 2 years ago
parent
commit
c01d6ecc28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Hotline/Settings/SystemOrganize.cs

+ 1 - 1
src/Hotline/Settings/SystemOrganize.cs

@@ -56,6 +56,6 @@ public class SystemOrganize : CreationEntity
     {
         if (OrgCode.Length % 3 != 0)
             throw new UserFriendlyException("非法部门Code");
-        OrgLevel = OrgCode.Length / 3;
+        OrgLevel = (OrgCode.Length / 3) - 1;
     }
 }