1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-29 13:51:37 +08:00

优化开发登录逻辑

This commit is contained in:
xiaochong0302 2020-12-09 19:29:34 +08:00
parent 86c9c03835
commit 6455f88181

View File

@ -117,7 +117,7 @@ class ConnectController extends Controller
$openUser = $service->getOpenUserInfo($code, $state, $provider);
$connect = $service->getConnectRelation($openUser['id'], $openUser['provider']);
if ($connect && $connect->deleted == 0) {
if ($connect) {
if ($this->authUser->id > 0) {
$service->bindUser($openUser);
return $this->response->redirect(['for' => 'home.uc.account']);