From c32291ca4dd628da016cb46fb11cffbf68ddc5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Fri, 2 Feb 2018 11:25:52 +0800 Subject: [PATCH] bug fix --- src/PdAuth/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PdAuth/Middleware/Authenticate.php b/src/PdAuth/Middleware/Authenticate.php index 58e97f6..550a13c 100644 --- a/src/PdAuth/Middleware/Authenticate.php +++ b/src/PdAuth/Middleware/Authenticate.php @@ -44,7 +44,7 @@ class Authenticate if ($code) { $token = app('pd.auth')->getAccessToken($code); if (isset($token['access_token'])) { - setcookie(self::CookieName, $token['access_token'], strtotime($token['expire_at'])); + setcookie(self::CookieName, $token['access_token'], strtotime($token['expired_at'])); $qs = $request->getQueryString(); $params = explode('&', $qs);