更新前端
This commit is contained in:
@@ -11,6 +11,7 @@ use think\facade\Config;
|
||||
|
||||
use think\exception\HttpResponseException;
|
||||
use think\facade\Request;
|
||||
use app\index\model\User;
|
||||
|
||||
class Base
|
||||
{
|
||||
@@ -36,7 +37,7 @@ class Base
|
||||
# 获取用户信息
|
||||
$this->userId = Cookie::get('user_id');
|
||||
if (!empty($this->userId)) {
|
||||
$this->user = Db::table('yz_users')->where('uid', $this->userId)->find();
|
||||
$this->user = User::where('uid', $this->userId)->find();
|
||||
}
|
||||
|
||||
View::assign([
|
||||
|
||||
Reference in New Issue
Block a user