作者 lyh

gx

@@ -46,7 +46,7 @@ class FileManageController extends BaseController @@ -46,7 +46,7 @@ class FileManageController extends BaseController
46 $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%']; 46 $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%'];
47 $lists = $fileManage->lists($this->map, $this->page, $this->row); 47 $lists = $fileManage->lists($this->map, $this->page, $this->row);
48 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND); 48 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);
49 - if(!empty($lists) && !empty($lists)){ 49 + if(!empty($lists) && !empty($lists['list'])){
50 foreach ($lists['list'] as $k => $v){ 50 foreach ($lists['list'] as $k => $v){
51 $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']); 51 $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']);
52 $lists['list'][$k] = $v; 52 $lists['list'][$k] = $v;