diff --git a/app/api/controller/TeacherController.php b/app/api/controller/TeacherController.php index b28b74f..b6f2946 100644 --- a/app/api/controller/TeacherController.php +++ b/app/api/controller/TeacherController.php @@ -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); } /**