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