lgy 10 hours ago
parent
commit
e85cf7cb7c
1 changed files with 6 additions and 7 deletions
  1. 6 7
      jcjyhr/app/admin/library/Auth.php

+ 6 - 7
jcjyhr/app/admin/library/Auth.php

@@ -410,27 +410,27 @@ class Auth extends \ba\Auth
 
 
     public function check(string $name, int $uid = 0, string $relation = 'or', string $mode = 'url'): bool
     public function check(string $name, int $uid = 0, string $relation = 'or', string $mode = 'url'): bool
     {
     {
-        return parent::check($name, $uid ?: $this->id, $relation, $mode);
+        return parent::check($name, $uid ?: $this->ID, $relation, $mode);
     }
     }
 
 
     public function getGroups(int $uid = 0): array
     public function getGroups(int $uid = 0): array
     {
     {
-        return parent::getGroups($uid ?: $this->id);
+        return parent::getGroups($uid ?: $this->ID);
     }
     }
 
 
     public function getRuleList(int $uid = 0): array
     public function getRuleList(int $uid = 0): array
     {
     {
-        return parent::getRuleList($uid ?: $this->id);
+        return parent::getRuleList($uid ?: $this->ID);
     }
     }
 
 
     public function getRuleIds(int $uid = 0): array
     public function getRuleIds(int $uid = 0): array
     {
     {
-        return parent::getRuleIds($uid ?: $this->id);
+        return parent::getRuleIds($uid ?: $this->ID);
     }
     }
 
 
     public function getMenus(int $uid = 0): array
     public function getMenus(int $uid = 0): array
     {
     {
-        return parent::getMenus($uid ?: $this->id);
+        return parent::getMenus($uid ?: $this->ID);
     }
     }
 
 
     /**
     /**
@@ -439,7 +439,6 @@ class Auth extends \ba\Auth
      */
      */
     public function isSuperAdmin(): bool
     public function isSuperAdmin(): bool
     {
     {
-        var_dump($this->getRuleIds());die;
         return in_array('*', $this->getRuleIds());
         return in_array('*', $this->getRuleIds());
     }
     }
 
 
@@ -451,7 +450,7 @@ class Auth extends \ba\Auth
     public function getAdminChildGroups(): array
     public function getAdminChildGroups(): array
     {
     {
         $groupIds = Db::name('admin_group_access')
         $groupIds = Db::name('admin_group_access')
-            ->where('uid', $this->id)
+            ->where('uid', $this->ID)
             ->select();
             ->select();
         $children = [];
         $children = [];
         foreach ($groupIds as $group) {
         foreach ($groupIds as $group) {