fix 跳转bug
This commit is contained in:
parent
f7f15fe22d
commit
a20207f76a
@ -35,11 +35,11 @@ class TeacherController extends BaseController
|
||||
|
||||
// $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect";
|
||||
$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
|
||||
return $this->json([
|
||||
'code' => ResponseCode::SUCCESS,
|
||||
'data' => $url
|
||||
]);
|
||||
// return redirect($url);
|
||||
// return $this->json([
|
||||
// 'code' => ResponseCode::SUCCESS,
|
||||
// 'data' => $url
|
||||
// ]);
|
||||
return redirect($url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user