作者 lyh

gx

@@ -35,7 +35,6 @@ class CustomModuleContentController extends BaseController @@ -35,7 +35,6 @@ class CustomModuleContentController extends BaseController
35 $lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order); 35 $lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
36 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND); 36 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND);
37 if(!empty($lists)){ 37 if(!empty($lists)){
38 - $lists = $lists->toArray();  
39 $data = $this->getAllCategoryName(); 38 $data = $this->getAllCategoryName();
40 foreach ($lists as $k=>$v){ 39 foreach ($lists as $k=>$v){
41 $v['category_name'] = $this->categoryName($v['category_id'],$data); 40 $v['category_name'] = $this->categoryName($v['category_id'],$data);