diff --git a/CHANGELOG.md b/CHANGELOG.md index 95e38d3eebe670ffec767022db4330d04be46059..39179bb8b4bd16d4349f25142f2a923be5155080 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v6.0.97 / 2020-07-18 +- 修复请求门面手机设备类型 + ## v6.0.90 / 2020-07-18 - 优化代码 diff --git a/src/common.php b/src/common.php index c00f5ae6d61291481e673c7751dadbf8f170d75d..3d1006141424dd47f1a49cec5b0edb7f33efa53a 100644 --- a/src/common.php +++ b/src/common.php @@ -28,7 +28,7 @@ use think\db\exception\ModelNotFoundException; /** * 定义当前版本 */ -const VERSION = '6.0.90'; +const VERSION = '6.0.91'; if (!function_exists('get_ip_info')) { /** diff --git a/src/helper/Requests.php b/src/helper/Requests.php index e2d2893ed17ebe05a91d8d9bb631143abf7e5db5..09e0ccd2a064519ca165042a524395f1d0d8d266 100644 --- a/src/helper/Requests.php +++ b/src/helper/Requests.php @@ -234,7 +234,7 @@ class Requests $agent = strtolower(request()->server('HTTP_USER_AGENT')); $type = 'other'; if (strpos($agent, 'iphone') || strpos($agent, 'ipad')) { - $type = 'mobile'; + $type = 'ios'; } if (strpos($agent, 'android')) { $type = 'android';