- 修复数组

v6 v6.0.108
李光春 4 years ago
parent 7de2df56dc
commit 2cbb9d7424

@ -1,3 +1,6 @@
## v6.0.107 / 2020-09-03
- 修复数组
## v6.0.107 / 2020-08-15
- 优化

@ -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();

@ -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();

@ -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')) {
/**

@ -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;
}
}

Loading…
Cancel
Save