This commit is contained in:
make
2025-04-11 23:56:23 +08:00
parent 9350a2afff
commit bc92b44086
37 changed files with 246 additions and 216 deletions

View File

@@ -7,7 +7,9 @@ use app\home\controller\Novel;
use app\home\controller\User;
use think\facade\Route;
// 路由配置文件
/**
* 路由配置文件
*/
$arrRoutes = [
// H5/PC 端前缀
'prefixes' => [
@@ -106,7 +108,9 @@ $arrRoutes = [
];
// 遍历路由配置,动态注册 H5 和 PC 路由
/**
* 遍历路由配置,动态注册 H5 和 PC 路由
*/
foreach ($arrRoutes['prefixes'] as $platform => $prefixes) {
$prefixes = is_array($prefixes) ? $prefixes : [$prefixes];
$boolIsMobile = $platform === 'h5';