|
@@ -38,7 +38,7 @@ class Core
|
|
|
{
|
|
|
# 获取当前的用户信息
|
|
|
$this->token = Dever::input('token');
|
|
|
- $this->uid = 1;
|
|
|
+ $this->uid = Dever::load('passport/user')->check(false);
|
|
|
$this->checkCode();
|
|
|
$this->user = $this->getUser($this->uid, $this->id);
|
|
|
$this->user['id'] = $this->uid;
|