This commit is contained in:
候学杰 2018-05-29 21:21:20 +08:00
parent 60d1029134
commit 216c41e7cd

View File

@ -24,7 +24,7 @@ class PdAuthServiceProvider extends ServiceProvider
$this->app['auth']->viaRequest('auth', function (Request $request) {
$token = $request->cookie(Authenticate::CookieName);
$token = $request->header('Authorization', $request->cookie(Authenticate::CookieName));
if ($token) {
try {