mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-29 05:41:37 +08:00
优化开发登录逻辑
This commit is contained in:
parent
86c9c03835
commit
6455f88181
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user