first commit

This commit is contained in:
Your Name
2026-01-19 14:19:22 +08:00
commit fe2d9c1868
4777 changed files with 665503 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace app\index\controller;
use app\BaseController;
use app\common\service\JsonService;
use think\facade\Request;
class IndexController extends BaseController
{
/**
* @notes 主页
* @param string $name
* @return \think\response\Json|\think\response\View
* @author 段誉
* @date 2022/10/27 18:12
*/
public function index($name = 'hello word')
{
$template = app()->getRootPath() . 'public/pc/index.html';
if (Request::isMobile()) {
$template = app()->getRootPath() . 'public/mobile/index.html';
}
if (file_exists($template)) {
return view($template);
}
return JsonService::success($name);
}
}