|
...
|
...
|
@@ -552,16 +552,17 @@ class ProductLogic extends BaseLogic |
|
|
|
$columnList = $columnModel->list(['product_id'=>$product_id]);
|
|
|
|
if(!empty($columnList)){
|
|
|
|
foreach ($columnList as $k => $v){
|
|
|
|
$column_id = $v['id'];
|
|
|
|
unset($v['id']);
|
|
|
|
$v['product_id'] = $new_product_id;
|
|
|
|
$column_id = $columnModel->addReturnId($v);
|
|
|
|
//执行新增描述
|
|
|
|
$detailModel = new Detail();
|
|
|
|
$detailList = $detailModel->list(['product_id'=>$product_id,'column_id'=>$v['id']]);
|
|
|
|
$detailList = $detailModel->list(['product_id'=>$product_id,'column_id'=>$column_id]);
|
|
|
|
if(!empty($detailList)){
|
|
|
|
$data = [];
|
|
|
|
foreach ($detailList as $val){
|
|
|
|
unset($v['id']);
|
|
|
|
unset($val['id']);
|
|
|
|
$val['css'] = Arr::a2s($val['css']);
|
|
|
|
$val['content'] = Arr::a2s($val['content']);
|
|
|
|
$val['product_id'] = $new_product_id;
|
...
|
...
|
|