优化上传组件
This commit is contained in:
@@ -115,7 +115,20 @@ class Upload extends Base {
|
||||
}
|
||||
|
||||
public function filemanage(){
|
||||
return [];
|
||||
$pageConfig = [
|
||||
'list_rows' => $this->request->param('list_rows', 20),
|
||||
'page' => $this->request->param('page', 1),
|
||||
'query' => $this->request->param()
|
||||
];
|
||||
$map[] = ['type', '=', 'image'];
|
||||
$data = Db::where($map)->name('Attach')->paginate($pageConfig)->each(function($item, $key){
|
||||
$item['thumbURL'] = $item['url'];
|
||||
$item['oriURL'] = $item['url'];
|
||||
return $item;
|
||||
})->toArray();
|
||||
|
||||
$data['code'] = "000";
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function ueditor(){
|
||||
|
||||
Reference in New Issue
Block a user