refactor: ipd平台访问重定向为mobile view改为可配置

This commit is contained in:
2025-06-27 09:18:01 +08:00
parent c2b93bc290
commit fbeab9b7a0
5 changed files with 91 additions and 12 deletions

View File

@@ -3,13 +3,7 @@
// | 模板设置
// +----------------------------------------------------------------------
use Detection\MobileDetect;
$detect = new MobileDetect();
$view_device_name = 'pc';
if ($detect->isMobile() || $detect->isTablet() || request()->get('mtpl') == 1) {
$view_device_name = 'mobile';
}
$view_device_name = get_platform();
return [
// 模板引擎类型使用Think