Files
duolamaojiazhen/route/route.php
gitfjn 3f6112d6f1 添加跨域
添加服务后台添加
2025-12-23 10:28:15 +08:00

16 lines
449 B
PHP

<?php
use think\facade\Config;
use think\facade\Route;
//手机h5页面路由
Route::rule('mobile/:any', function () {
Config::set('app_trace', false);
return view(app()->getRootPath() . 'public/mobile/index.html');
})->pattern(['any' => '\w+']);
//手机h5页面路由
Route::rule('pc/:any', function () {
Config::set('app_trace', false);
return view(app()->getRootPath() . 'public/pc/lists.html');
})->pattern(['any' => '\w+']);