正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -58,6 +58,8 @@ class ProductController extends BaseController | @@ -58,6 +58,8 @@ 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(); | ||
| 61 | foreach ($category_data as $v1){ | 63 | foreach ($category_data as $v1){ |
| 62 | $v['category_id_text'] .= $v1['title'].','; | 64 | $v['category_id_text'] .= $v1['title'].','; |
| 63 | } | 65 | } |
-
请 注册 或 登录 后发表评论