正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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; |
-
请 注册 或 登录 后发表评论