正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -280,8 +280,12 @@ class FileController | @@ -280,8 +280,12 @@ class FileController | ||
| 280 | * @time :2023/6/29 11:48 | 280 | * @time :2023/6/29 11:48 |
| 281 | */ | 281 | */ |
| 282 | public function getFileList(){ | 282 | public function getFileList(){ |
| 283 | + if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){ | ||
| 284 | + $this->map['project_id'] = $this->cache['project_id']; | ||
| 285 | + } | ||
| 286 | + $this->map['refer'] = 1; | ||
| 283 | $fileModel = new File(); | 287 | $fileModel = new File(); |
| 284 | - $lists = $fileModel->list(['refer'=>1],$order = 'id',['id','hash','type','path','created_at']); | 288 | + $lists = $fileModel->list($this->map,'id',['id','hash','type','path','created_at']); |
| 285 | foreach ($lists as $k => $v){ | 289 | foreach ($lists as $k => $v){ |
| 286 | $v['file_link'] = getFileUrl($v['hash']); | 290 | $v['file_link'] = getFileUrl($v['hash']); |
| 287 | $lists[$k] = $v; | 291 | $lists[$k] = $v; |
-
请 注册 或 登录 后发表评论