@@ -148,8 +148,9 @@ class Login extends Api
$user=Db::table('q_user')->where('id',$id)->find();
}
- echo 1;die();
+
$token = JWT::encode($user,config('jwt.key'));
+ echo 1;die();
$this->success('登陆成功',['token'=>$token]);