正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -58,8 +58,6 @@ class ProductController extends BaseController | @@ -58,8 +58,6 @@ class ProductController extends BaseController | ||
| 58 | if(!empty($v['category_id'])){ | 58 | if(!empty($v['category_id'])){ |
| 59 | $categoryModel = new Category(); | 59 | $categoryModel = new Category(); |
| 60 | $category_data = $categoryModel->list(['id'=>['in',$v['category_id']]],'id',['title']); | 60 | $category_data = $categoryModel->list(['id'=>['in',$v['category_id']]],'id',['title']); |
| 61 | - var_dump($category_data); | ||
| 62 | - die(); | ||
| 63 | foreach ($category_data as $v1){ | 61 | foreach ($category_data as $v1){ |
| 64 | $v['category_id_text'] .= $v1['title'].','; | 62 | $v['category_id_text'] .= $v1['title'].','; |
| 65 | } | 63 | } |
-
请 注册 或 登录 后发表评论