作者 lyh

gx

@@ -44,11 +44,9 @@ class FileManageController extends BaseController @@ -44,11 +44,9 @@ class FileManageController extends BaseController
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 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND); 46 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);
47 - if(!empty($lists)){  
48 - foreach ($lists as $k => $v){  
49 -// @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND);  
50 - $v = (array)$v;  
51 -// $v['download_url'] = url('b/file_manager_downLoad?hash='.$v['hash']); 47 + if(!empty($lists) && !empty($lists)){
  48 + foreach ($lists['list'] as $k => $v){
  49 + $v['download_url'] = url('b/file_manager_downLoad?hash='.$v['hash']);
52 $lists[$k] = $v; 50 $lists[$k] = $v;
53 } 51 }
54 } 52 }