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

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

View File

@@ -15,10 +15,7 @@ class ConfirmRequestFrom
public function handle($request, \Closure $next)
{
// 确认请求来源
$request->from = 'pc';
if ($request->isMobile() || $request->get('mtpl') == 1) {
$request->from = 'mobile';
}
$request->from = get_platform();
return $next($request);
}