作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

修改问题文档

... ... @@ -111,6 +111,7 @@ class Index extends Backend
$user = cookie('user');
dump($user);
\think\Session::get('user');
if(!empty($token)){
$user_id = Db::name('user_token')->where(['token'=>$token])->value('user_id');
dump($user_id);
... ...
... ... @@ -141,7 +141,6 @@ class User extends Frontend
$token = $this->auth->getToken();
session('token',$token);
Cookie::set('token',$token);
session('user',$result);
$this->success('SUCCESS','',['target_url'=>rawurldecode($target_url)]);
}
... ... @@ -194,7 +193,6 @@ class User extends Frontend
$token = $this->auth->getToken();
session('token',$token);
Cookie::set('token',$token);
session('user',$result1);
$this->success('SUCCESS');
}
... ...