From 931f6cb0221e27bccaf4ac4699989c598b64784e Mon Sep 17 00:00:00 2001 From: Dai Date: Mon, 22 Jul 2024 17:47:43 +0800 Subject: [PATCH] =?UTF-8?q?h5=E7=9B=AE=E5=BD=95=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/h5/controller/IndexController.php | 20 ++++++++++++++ app/h5/view/student/index.html | 39 +++++++++++++++++++++++++++ app/h5/view/teacher/index.html | 39 +++++++++++++++++++++++++++ config/route.php | 4 +++ 4 files changed, 102 insertions(+) create mode 100644 app/h5/controller/IndexController.php create mode 100644 app/h5/view/student/index.html create mode 100644 app/h5/view/teacher/index.html diff --git a/app/h5/controller/IndexController.php b/app/h5/controller/IndexController.php new file mode 100644 index 0000000..3b8264d --- /dev/null +++ b/app/h5/controller/IndexController.php @@ -0,0 +1,20 @@ + + + + + 恭喜,站点创建成功【学生】! + + + +
+

恭喜, 站点创建成功 student!

+

这是默认index.html,本页面由系统自动生成

+ +
+ + \ No newline at end of file diff --git a/app/h5/view/teacher/index.html b/app/h5/view/teacher/index.html new file mode 100644 index 0000000..b7e2d3c --- /dev/null +++ b/app/h5/view/teacher/index.html @@ -0,0 +1,39 @@ + + + + + 恭喜,站点创建成功【教师】! + + + +
+

恭喜, 站点创建成功 teacher!

+

这是默认index.html,本页面由系统自动生成

+ +
+ + \ No newline at end of file diff --git a/config/route.php b/config/route.php index 6a0402e..f402162 100644 --- a/config/route.php +++ b/config/route.php @@ -13,9 +13,13 @@ */ use Webman\Route; + // 默认路由 Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']); +Route::any('/h5/student', [\app\h5\controller\IndexController::class, 'student']); +Route::any('/h5/teacher', [\app\h5\controller\IndexController::class, 'teacher']); +