提交 2cbb9d74 编写于 作者: 李光春's avatar 李光春

- 修复数组

上级 7de2df56
## v6.0.107 / 2020-09-03
- 修复数组
## v6.0.107 / 2020-08-15 ## v6.0.107 / 2020-08-15
- 优化 - 优化
......
...@@ -65,7 +65,7 @@ class ApiController extends stdClass ...@@ -65,7 +65,7 @@ class ApiController extends stdClass
$this->app = $app; $this->app = $app;
$this->request = $app->request; $this->request = $app->request;
$this->app->bind('DtApp\ThinkLibrary\ApiController', $this); $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->error('Access without permission.');
} }
$this->initialize(); $this->initialize();
......
...@@ -52,7 +52,7 @@ class Controller extends stdClass ...@@ -52,7 +52,7 @@ class Controller extends stdClass
$this->app = $app; $this->app = $app;
$this->request = $app->request; $this->request = $app->request;
$this->app->bind('DtApp\ThinkLibrary\Controller', $this); $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->error('Access without permission.');
} }
$this->initialize(); $this->initialize();
......
...@@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService; ...@@ -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')) { if (!function_exists('get_ip_info')) {
/** /**
......
...@@ -86,7 +86,7 @@ class Arrays ...@@ -86,7 +86,7 @@ class Arrays
{ {
$out = array(); $out = array();
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
if (!in_array($value, $out, true)) { if (!in_array($value, $out)) {
$out[$key] = $value; $out[$key] = $value;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册