Skip to content

Commit 28c8927

Browse files
author
zhaoxiang
committed
modified 细节修复
1 parent e6c128e commit 28c8927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controller/admin/ThirdLogin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ private function doLogin(string $openid, array $userDetail): Response {
336336
}
337337
}
338338

339-
$userInfo['access'] = (new Login(App()))->getAccess($userInfo['id']);
340-
$userInfo['menu'] = (new Login(App()))->getAccessMenuData($userInfo['id']);
339+
$userInfo['access'] = (new Login(App()))->getAccess(intval($userInfo['id']));
340+
$userInfo['menu'] = (new Login(App()))->getAccessMenuData(intval($userInfo['id']));
341341

342342
$apiAuth = md5(uniqid() . time());
343343
cache('Login:' . $apiAuth, json_encode($userInfo), config('apiadmin.ONLINE_TIME'));

0 commit comments

Comments
 (0)