1
0
Fork 0
master
panliang 2023-10-17 10:15:09 +08:00
parent 93ab2c5eed
commit adb462533f
2 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class AuthController extends AdminAuthController
UserSocialite::where([
'type' => SocialiteType::from($open_type),
'user_type' => $user->getMorphClass(),
'user_id' => $user->id,
])->update(['user_id' => null]);
UserSocialite::updateOrCreate([
'type' => SocialiteType::from($open_type),

View File

@ -68,6 +68,7 @@ class AuthController extends Controller
UserSocialite::where([
'type' => $type,
'user_type' => $user->getMorphClass(),
'user_id' => $user->id,
])->update(['user_id' => null]);
UserSocialite::updateOrCreate([
'type' => $type,