From 28c8927e594e3ec76ceab949bbd3ba07f870803d Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 13 Oct 2020 19:40:51 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E7=BB=86=E8=8A=82=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/ThirdLogin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/admin/ThirdLogin.php b/app/controller/admin/ThirdLogin.php index 493dc1b..4659911 100644 --- a/app/controller/admin/ThirdLogin.php +++ b/app/controller/admin/ThirdLogin.php @@ -336,8 +336,8 @@ class ThirdLogin extends Base { } } - $userInfo['access'] = (new Login(App()))->getAccess($userInfo['id']); - $userInfo['menu'] = (new Login(App()))->getAccessMenuData($userInfo['id']); + $userInfo['access'] = (new Login(App()))->getAccess(intval($userInfo['id'])); + $userInfo['menu'] = (new Login(App()))->getAccessMenuData(intval($userInfo['id'])); $apiAuth = md5(uniqid() . time()); cache('Login:' . $apiAuth, json_encode($userInfo), config('apiadmin.ONLINE_TIME'));