From 2cbb9d7424de933b9167c6e2bbf81fc8fb91b73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Thu, 3 Sep 2020 16:46:42 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ src/ApiController.php | 2 +- src/Controller.php | 2 +- src/common.php | 2 +- src/helper/Arrays.php | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbdaf86..83a9a50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v6.0.107 / 2020-09-03 +- 修复数组 + ## v6.0.107 / 2020-08-15 - 优化 diff --git a/src/ApiController.php b/src/ApiController.php index a897909..2599403 100644 --- a/src/ApiController.php +++ b/src/ApiController.php @@ -65,7 +65,7 @@ class ApiController extends stdClass $this->app = $app; $this->request = $app->request; $this->app->bind('DtApp\ThinkLibrary\ApiController', $this); - if (in_array($this->request->action(), get_class_methods(__CLASS__), true)) { + if (in_array($this->request->action(), get_class_methods(__CLASS__))) { $this->error('Access without permission.'); } $this->initialize(); diff --git a/src/Controller.php b/src/Controller.php index 14a3619..ee65843 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -52,7 +52,7 @@ class Controller extends stdClass $this->app = $app; $this->request = $app->request; $this->app->bind('DtApp\ThinkLibrary\Controller', $this); - if (in_array($this->request->action(), get_class_methods(__CLASS__), true)) { + if (in_array($this->request->action(), get_class_methods(__CLASS__))) { $this->error('Access without permission.'); } $this->initialize(); diff --git a/src/common.php b/src/common.php index e48f85d..4bd2623 100644 --- a/src/common.php +++ b/src/common.php @@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService; /** * 定义当前版本 */ -const VERSION = '6.0.107'; +const VERSION = '6.0.108'; if (!function_exists('get_ip_info')) { /** diff --git a/src/helper/Arrays.php b/src/helper/Arrays.php index fa1dada..1972fbe 100644 --- a/src/helper/Arrays.php +++ b/src/helper/Arrays.php @@ -86,7 +86,7 @@ class Arrays { $out = array(); foreach ($array as $key => $value) { - if (!in_array($value, $out, true)) { + if (!in_array($value, $out)) { $out[$key] = $value; } }