正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -43,10 +43,12 @@ class FileManageController extends BaseController | @@ -43,10 +43,12 @@ class FileManageController extends BaseController | ||
| 43 | $this->map['project_id'] = $this->user['project_id']; | 43 | $this->map['project_id'] = $this->user['project_id']; |
| 44 | $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%']; | 44 | $this->request['name'] && $this->map['name'] = ['like','%'.$this->request['name'].'%']; |
| 45 | $lists = $fileManage->lists($this->map, $this->page, $this->row); | 45 | $lists = $fileManage->lists($this->map, $this->page, $this->row); |
| 46 | + if(!empty($lists)){ | ||
| 46 | foreach ($lists as $k => $v){ | 47 | foreach ($lists as $k => $v){ |
| 47 | $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']); | 48 | $v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']); |
| 48 | $lists[$k] = $v; | 49 | $lists[$k] = $v; |
| 49 | } | 50 | } |
| 51 | + } | ||
| 50 | $this->response('success',Code::SUCCESS,$lists); | 52 | $this->response('success',Code::SUCCESS,$lists); |
| 51 | } | 53 | } |
| 52 | 54 |
-
请 注册 或 登录 后发表评论