超级总管 - 管理员全模块返工

This commit is contained in:
柳清爽
2025-04-17 18:09:58 +08:00
parent 9c33603c04
commit b7b606701e
13 changed files with 212 additions and 384 deletions

View File

@@ -28,10 +28,9 @@ class AdminAuth
}
// 获取管理员信息
$admin = \app\superadmin\model\Administrator::where([
$admin = \app\common\model\Administrator::where([
['id', '=', $adminId],
['status', '=', 1],
['deleteTime', '=', 0]
['status', '=', 1]
])->find();
// 如果管理员不存在返回401未授权
@@ -63,7 +62,7 @@ class AdminAuth
/**
* 创建登录令牌
* @param \app\superadmin\model\Administrator $admin
* @param \app\common\model\Administrator $admin
* @return string
*/
private function createToken($admin)