|
...
|
...
|
@@ -114,13 +114,13 @@ class ProductLogic extends BaseLogic |
|
|
|
$this->delProductDetail($product_id);
|
|
|
|
if(!empty($detail)){
|
|
|
|
try {
|
|
|
|
foreach ($detail as $val){
|
|
|
|
foreach ($detail as $key =>$val){
|
|
|
|
//查看当前栏目是否存在
|
|
|
|
$columnId = $this->getColumnId($product_id,$key);
|
|
|
|
foreach ($val as $v){
|
|
|
|
if(empty($v['column_name'])){
|
|
|
|
if(empty($key)){
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
//查看当前栏目是否存在
|
|
|
|
$columnId = $this->getColumnId($product_id,$v['column_name']);
|
|
|
|
$save_data = $this->handleDetailParam($columnId['column_id'],$product_id,$v);
|
|
|
|
$this->model->add($save_data);
|
|
|
|
}
|
...
|
...
|
|