From 7de8f65d53cb771bb1e18dadddd2a71888813566 Mon Sep 17 00:00:00 2001 From: Dai Date: Tue, 23 Jul 2024 22:01:31 +0800 Subject: [PATCH] h5 --- app/api/controller/StudentController.php | 2 +- app/api/controller/TeacherController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);