正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -33,7 +33,6 @@ class CustomModuleContentController extends BaseController | @@ -33,7 +33,6 @@ class CustomModuleContentController extends BaseController | ||
| 33 | ]); | 33 | ]); |
| 34 | $this->map['project_id'] = $this->user['project_id']; | 34 | $this->map['project_id'] = $this->user['project_id']; |
| 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); | ||
| 37 | if(!empty($lists)){ | 36 | if(!empty($lists)){ |
| 38 | $data = $this->getAllCategoryName(); | 37 | $data = $this->getAllCategoryName(); |
| 39 | foreach ($lists['list'] as $k=>$v){ | 38 | foreach ($lists['list'] as $k=>$v){ |
| @@ -73,9 +72,9 @@ class CustomModuleContentController extends BaseController | @@ -73,9 +72,9 @@ class CustomModuleContentController extends BaseController | ||
| 73 | public function categoryName($category_id,$data){ | 72 | public function categoryName($category_id,$data){ |
| 74 | $category_name = ''; | 73 | $category_name = ''; |
| 75 | if(!empty($category_id) && !empty($data)){ | 74 | if(!empty($category_id) && !empty($data)){ |
| 76 | - foreach ($category_id as $v1){ | ||
| 77 | - if(isset($data[$v1])){ | ||
| 78 | - $category_name .= $data[$v1].','; | 75 | + foreach ($category_id as $v){ |
| 76 | + if(isset($data[$v])){ | ||
| 77 | + $category_name .= $data[$v].','; | ||
| 79 | } | 78 | } |
| 80 | } | 79 | } |
| 81 | $category_name = trim($category_name,','); | 80 | $category_name = trim($category_name,','); |
-
请 注册 或 登录 后发表评论