|
...
|
...
|
@@ -280,8 +280,12 @@ class FileController |
|
|
|
* @time :2023/6/29 11:48
|
|
|
|
*/
|
|
|
|
public function getFileList(){
|
|
|
|
if(isset($this->cache['project_id']) && !empty($this->cache['project_id'])){
|
|
|
|
$this->map['project_id'] = $this->cache['project_id'];
|
|
|
|
}
|
|
|
|
$this->map['refer'] = 1;
|
|
|
|
$fileModel = new File();
|
|
|
|
$lists = $fileModel->list(['refer'=>1],$order = 'id',['id','hash','type','path','created_at']);
|
|
|
|
$lists = $fileModel->list($this->map,'id',['id','hash','type','path','created_at']);
|
|
|
|
foreach ($lists as $k => $v){
|
|
|
|
$v['file_link'] = getFileUrl($v['hash']);
|
|
|
|
$lists[$k] = $v;
|
...
|
...
|
|