rabin 3 月之前
父节点
当前提交
00fd40d7de
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Auth.php

+ 2 - 2
lib/Auth.php

@@ -3,7 +3,7 @@ use Dever;
 class Auth
 {
     protected $login = true;
-    protected $uid;
+    public $uid;
     protected $user;
     protected $system;
     protected $info;
@@ -83,7 +83,7 @@ class Auth
         $data['menu_id'] = $this->menu['id'];
         $data['key'] = $key;
         $key = $key . $data['menu_id'];
-        if (isset($this->func[$key])) {
+        if (isset($this->func[$key]['id'])) {
             return $this->func[$key]['id'];
         }
         $this->func[$key] = Dever::db('menu_func', 'manage')->find($data);