6
0
Fork 0
release
李静 2022-02-25 15:15:55 +08:00
parent 50233736c6
commit 6f748f65a4
1 changed files with 5 additions and 2 deletions

View File

@ -135,13 +135,16 @@ class SocialiteAuthController extends Controller
$user = null;
$config = config('socialite', []);
$socialite = new SocialiteManager($config);
switch ($provider) {
case SocialiteType::WechatMiniProgram://微信小程序
$user = $socialite->create('wehcat-mini')->userFromCode($code);
case SocialiteType::WechatMiniProgram->value: //微信小程序
$user = $socialite->create(SocialiteType::WechatMiniProgram->value)->userFromCode($code);
break;
default:
throw new BizException(404);
}
return $user;
}