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