fix:优化auth权限,登录逻辑获取信息

This commit is contained in:
Ying
2022-12-02 11:16:57 +08:00
parent 66c75fb6b4
commit 1cba17c91c
31 changed files with 668 additions and 811 deletions

View File

@@ -23,29 +23,6 @@ use system\Random;
class Request extends \Webman\Http\Request
{
/**
* 用户ID
* @var int
*/
public mixed $user_id = 0;
/**
* 用户信息
*/
public mixed $userData = [];
/**
* 管理员ID
* @var int
*/
public mixed $admin_id = 0;
/**
* 管理员信息
* @return string
*/
public mixed $adminData = [];
/**
* 生成请求令牌
* @access public
@@ -68,7 +45,6 @@ class Request extends \Webman\Http\Request
* @param string $token 令牌名称
* @param array $data 表单数据
* @return bool
* @throws \Psr\SimpleCache\InvalidArgumentException
*/
public function checkToken(string $token = '__token__', array $data = []): bool
{