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'); });