1
0
Fork 0

wechat redirect

master
panliang 2023-09-21 22:26:08 +08:00
parent ab41b7f28f
commit a0c0160e5c
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class WechatController extends Controller
]); ]);
$user = $socialite->user; $user = $socialite->user;
if (!$user) { if (!$user) {
return redirect(url('/h5/pages/login/login') . '?openid=' . $openid); return redirect(url('/h5/pages/login/login') . '?' . http_build_query(['openid' => $openid, 'open_type' => SocialiteType::WxOfficial->value]));
} }
$module = Admin::currentModule(true); $module = Admin::currentModule(true);