更新前端

This commit is contained in:
2025-05-19 15:44:34 +08:00
parent 3f7b87cdb5
commit f8257144cb
8 changed files with 66 additions and 21 deletions
+2 -1
View File
@@ -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([