正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -397,9 +397,9 @@ class FileController | @@ -397,9 +397,9 @@ class FileController | ||
| 397 | $row = $this->param['row'] ?? 20; | 397 | $row = $this->param['row'] ?? 20; |
| 398 | unset($this->param['page'],$this->param['row']); | 398 | unset($this->param['page'],$this->param['row']); |
| 399 | $lists = $fileModel->lists($this->param,$page,$row,'id',['id','hash','type','path','created_at','name']); | 399 | $lists = $fileModel->lists($this->param,$page,$row,'id',['id','hash','type','path','created_at','name']); |
| 400 | - foreach ($lists as $k => $v){ | 400 | + foreach ($lists['list'] as $k => $v){ |
| 401 | $v['file_link'] = getFileUrl($v['path'],$this->cache['storage_type'] ?? 0,$this->cache['project_location'] ?? 0,$this->cache['file_cdn'] ?? 0); | 401 | $v['file_link'] = getFileUrl($v['path'],$this->cache['storage_type'] ?? 0,$this->cache['project_location'] ?? 0,$this->cache['file_cdn'] ?? 0); |
| 402 | - $lists[$k] = $v; | 402 | + $lists['list'][$k] = $v; |
| 403 | } | 403 | } |
| 404 | $this->response('success',Code::SUCCESS,$lists); | 404 | $this->response('success',Code::SUCCESS,$lists); |
| 405 | } | 405 | } |
-
请 注册 或 登录 后发表评论