正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -114,6 +114,7 @@ class ProductLogic extends BaseLogic | @@ -114,6 +114,7 @@ class ProductLogic extends BaseLogic | ||
| 114 | if(!empty($detail)){ | 114 | if(!empty($detail)){ |
| 115 | try { | 115 | try { |
| 116 | $this->delProductDetail($product_id); | 116 | $this->delProductDetail($product_id); |
| 117 | + $detailModel = new Detail(); | ||
| 117 | foreach ($detail as $val){ | 118 | foreach ($detail as $val){ |
| 118 | //查看当前栏目是否存在 | 119 | //查看当前栏目是否存在 |
| 119 | if(empty($val['column_name'])){ | 120 | if(empty($val['column_name'])){ |
| @@ -128,7 +129,6 @@ class ProductLogic extends BaseLogic | @@ -128,7 +129,6 @@ class ProductLogic extends BaseLogic | ||
| 128 | if(!empty($val['data']) && is_array($val['data'])){ | 129 | if(!empty($val['data']) && is_array($val['data'])){ |
| 129 | foreach ($val['data'] as $item){ | 130 | foreach ($val['data'] as $item){ |
| 130 | $save_data = $this->handleDetailParam($column_id,$product_id,$item); | 131 | $save_data = $this->handleDetailParam($column_id,$product_id,$item); |
| 131 | - $detailModel = new Detail(); | ||
| 132 | $detailModel->addReturnId($save_data); | 132 | $detailModel->addReturnId($save_data); |
| 133 | } | 133 | } |
| 134 | } | 134 | } |
-
请 注册 或 登录 后发表评论