正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -72,10 +72,11 @@ class CustomModuleContentController extends BaseController | @@ -72,10 +72,11 @@ class CustomModuleContentController extends BaseController | ||
| 72 | public function categoryName($category_id,$data){ | 72 | public function categoryName($category_id,$data){ |
| 73 | $category_name = ''; | 73 | $category_name = ''; |
| 74 | if(!empty($category_id) && !empty($data)){ | 74 | if(!empty($category_id) && !empty($data)){ |
| 75 | - foreach ($category_id as $v){ | ||
| 76 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND); | ||
| 77 | - if(isset($data[$v])){ | ||
| 78 | - $category_name .= $data[$v].','; | 75 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($category_id, true) . PHP_EOL, FILE_APPEND); |
| 76 | + foreach ($category_id as $v1){ | ||
| 77 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v1, true) . PHP_EOL, FILE_APPEND); | ||
| 78 | + if(isset($data[$v1])){ | ||
| 79 | + $category_name .= $data[$v1].','; | ||
| 79 | } | 80 | } |
| 80 | } | 81 | } |
| 81 | $category_name = trim($category_name,','); | 82 | $category_name = trim($category_name,','); |
-
请 注册 或 登录 后发表评论