6
0
Fork 0

修改微信授权登录

release
vine_liutk 2022-02-23 16:38:16 +08:00
parent 2d2b843175
commit 6b603e725d
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class SocialiteAuthController extends Controller
$socialiteUser = SocialiteUser::firstOrCreate($socialite);
$user = null;
$input = $request->input();
$phone = $input['phone'];
$phone = $input['phone'] ?? '';
switch ($type) {
case 'default'://手机号+密码
$user = User::where('phone', $phone)->first();