作者 lyh

变更数据

... ... @@ -397,9 +397,9 @@ class FileController
$row = $this->param['row'] ?? 20;
unset($this->param['page'],$this->param['row']);
$lists = $fileModel->lists($this->param,$page,$row,'id',['id','hash','type','path','created_at','name']);
foreach ($lists as $k => $v){
foreach ($lists['list'] as $k => $v){
$v['file_link'] = getFileUrl($v['path'],$this->cache['storage_type'] ?? 0,$this->cache['project_location'] ?? 0,$this->cache['file_cdn'] ?? 0);
$lists[$k] = $v;
$lists['list'][$k] = $v;
}
$this->response('success',Code::SUCCESS,$lists);
}
... ...