Update functions.php
This commit is contained in:
parent
af61b6a96b
commit
07ef5cf755
@ -3,11 +3,9 @@
|
||||
* Here is your custom functions.
|
||||
*/
|
||||
|
||||
use app\model\User;
|
||||
use plugin\admin\app\model\User;
|
||||
use plugin\admin\app\model\Admin;
|
||||
use plugin\admin\app\model\AdminRole;
|
||||
use plugin\admin\app\model\Role;
|
||||
use plugin\admin\app\model\Rule;
|
||||
|
||||
/**
|
||||
* 当前管理员id
|
||||
@ -138,4 +136,4 @@ function refresh_user_session(bool $force = false)
|
||||
unset($user['password']);
|
||||
$user['session_last_update_time'] = $time_now;
|
||||
$session->set('user', $user);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user