refactor: ipd平台访问重定向为mobile view改为可配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user