|
...
|
...
|
@@ -114,6 +114,7 @@ class ProductLogic extends BaseLogic |
|
|
|
if(!empty($detail)){
|
|
|
|
try {
|
|
|
|
$this->delProductDetail($product_id);
|
|
|
|
$detailModel = new Detail();
|
|
|
|
foreach ($detail as $val){
|
|
|
|
//查看当前栏目是否存在
|
|
|
|
if(empty($val['column_name'])){
|
|
...
|
...
|
@@ -128,7 +129,6 @@ class ProductLogic extends BaseLogic |
|
|
|
if(!empty($val['data']) && is_array($val['data'])){
|
|
|
|
foreach ($val['data'] as $item){
|
|
|
|
$save_data = $this->handleDetailParam($column_id,$product_id,$item);
|
|
|
|
$detailModel = new Detail();
|
|
|
|
$detailModel->addReturnId($save_data);
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|