From de00fe5e4833866d3ad649edcf5588793c8f9972 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 20 Nov 2019 20:03:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Tool/Request.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Base/Tool/Request.class.php b/Application/Base/Tool/Request.class.php index f8a9baad2..7def63602 100644 --- a/Application/Base/Tool/Request.class.php +++ b/Application/Base/Tool/Request.class.php @@ -62,7 +62,8 @@ class Request { public function isIOS13() { - if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i')) { + $userAgent = $this->getUserAgent(); + if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i', $userAgent)) { return true; } return false;