正在显示
1 个修改的文件
包含
6 行增加
和
5 行删除
| @@ -838,11 +838,12 @@ class BTemplateLogic extends BaseLogic | @@ -838,11 +838,12 @@ class BTemplateLogic extends BaseLogic | ||
| 838 | $values['category'][] = $item; | 838 | $values['category'][] = $item; |
| 839 | } | 839 | } |
| 840 | } | 840 | } |
| 841 | - $productType = $this->getCategoryList((new ProductType()),1,['id','name']); | ||
| 842 | - if(!empty($productType)){ | ||
| 843 | - foreach ($productCategory as $item){ | ||
| 844 | - $item['id'] = 'product_type_'.$item['id']; | ||
| 845 | - $values['category'][] = $item; | 841 | + $productTypeModel = new ProductType(); |
| 842 | + $productTypeList = $productTypeModel->list(['project_id'=>$this->user['project_id']],'id',['id','name']); | ||
| 843 | + if(!empty($productTypeList)){ | ||
| 844 | + foreach ($productTypeList as $items){ | ||
| 845 | + $items['id'] = 'product_type_'.$items['id']; | ||
| 846 | + $values['category'][] = $items; | ||
| 846 | } | 847 | } |
| 847 | } | 848 | } |
| 848 | break; | 849 | break; |
-
请 注册 或 登录 后发表评论