diff --git a/app/api/controller/StudentController.php b/app/api/controller/StudentController.php index 28f8c82..ac6e6fc 100644 --- a/app/api/controller/StudentController.php +++ b/app/api/controller/StudentController.php @@ -30,7 +30,7 @@ class StudentController extends BaseController public function getCode(Request $request) { $appid = getenv('WECHAT_APPID'); - $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5/teacher#/pages/index/index");//重定向地址 + $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5#/pages/index/index");//重定向地址 $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"; return redirect($url); diff --git a/app/api/controller/TeacherController.php b/app/api/controller/TeacherController.php index 100be8b..4c67c59 100644 --- a/app/api/controller/TeacherController.php +++ b/app/api/controller/TeacherController.php @@ -27,7 +27,7 @@ class TeacherController extends BaseController public function getCode(Request $request) { $appid = getenv('WECHAT_APPID'); - $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5/teacher#/pages/login/login");//重定向地址 + $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5#/pages/login/login");//重定向地址 $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"; return redirect($url);