From 4ff6e5959ab7d9e803cddbbf694b49510b569445 Mon Sep 17 00:00:00 2001 From: Dai Date: Thu, 25 Jul 2024 10:46:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/TeacherController.php | 2 +- config/route.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/TeacherController.php b/app/api/controller/TeacherController.php index 9ec0767..be904fa 100644 --- a/app/api/controller/TeacherController.php +++ b/app/api/controller/TeacherController.php @@ -30,7 +30,7 @@ class TeacherController extends BaseController { $appid = getenv('APP_ID'); - $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5#/pages/index/index");//重定向地址 + $redirect_uri = urlencode(getenv('SERVER_DOMAIN') . "/h5/#/pages/index/index");//重定向地址 // $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"; diff --git a/config/route.php b/config/route.php index 9ee6998..730fa3b 100644 --- a/config/route.php +++ b/config/route.php @@ -17,7 +17,7 @@ use Webman\Route; // 默认路由 Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']); -Route::any('/h5', function (){ +Route::any('/h5/', function (){ // return view(public_path() . '/h5'); return view('../../public/h5/index'); });