lgy 8 hours ago
parent
commit
f2fc12130a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      jcjyhr/extend/ba/Auth.php

+ 2 - 2
jcjyhr/extend/ba/Auth.php

@@ -74,8 +74,8 @@ class Auth
     private function getChildren(array $rules): array
     {
         foreach ($rules as $key => $rule) {
-            if (array_key_exists($rule['id'], $this->children)) {
-                $rules[$key]['children'] = $this->getChildren($this->children[$rule['id']]);
+            if (array_key_exists($rule['ID'], $this->children)) {
+                $rules[$key]['children'] = $this->getChildren($this->children[$rule['ID']]);
             }
         }
         return $rules;