Update Ajax.php
This commit is contained in:
@@ -175,11 +175,7 @@ class Ajax extends AdminController
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
case 'listImage':
|
||||
$res = (new SystemUploadfile())->order($this->sort)->limit(100)->column('url');
|
||||
$list = [];
|
||||
array_map(function ($value) use (&$list) {
|
||||
$list[] = ['url' => $value,];
|
||||
}, $res);
|
||||
$list = (new SystemUploadfile())->order($this->sort)->limit(100)->field('url')->select()->toArray();
|
||||
$result = [
|
||||
"state" => "SUCCESS",
|
||||
"list" => $list,
|
||||
|
||||
Reference in New Issue
Block a user