From d94ceb2a9ce960291120e83773594a36d6e4babb Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Thu, 26 Jun 2025 10:14:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ipd=E4=B8=AD=E5=8C=BA=E5=88=86mobile?= =?UTF-8?q?=E4=B8=8Epc=E9=97=AE=E9=A2=98bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/middleware/ConfirmRequestFrom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index/middleware/ConfirmRequestFrom.php b/app/index/middleware/ConfirmRequestFrom.php index b8cc9588..14a5e707 100644 --- a/app/index/middleware/ConfirmRequestFrom.php +++ b/app/index/middleware/ConfirmRequestFrom.php @@ -16,7 +16,7 @@ class ConfirmRequestFrom { // 确认请求来源 $request->from = 'pc'; - if ($request->isMobile()) { + if ($request->isMobile() || $request->get('mtpl') == 1) { $request->from = 'mobile'; }