|
...
|
...
|
@@ -553,15 +553,13 @@ class ProductLogic extends BaseLogic |
|
|
|
foreach ($columnList as $k => $v){
|
|
|
|
unset($v['id']);
|
|
|
|
$v['product_id'] = $new_product_id;
|
|
|
|
$v['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$v['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
$column_id = $columnModel->addReturnId($v);
|
|
|
|
//执行新增描述
|
|
|
|
$detailModel = new Detail();
|
|
|
|
$detailList = $detailModel->list(['product_id'=>$product_id,'column_id'=>$v['column_id']]);
|
|
|
|
if(!empty($detailList)){
|
|
|
|
$data = [];
|
|
|
|
foreach ($detailList as $k => $val){
|
|
|
|
foreach ($detailList as $val){
|
|
|
|
unset($v['id']);
|
|
|
|
$val['css'] = Arr::a2s($val['css']);
|
|
|
|
$val['content'] = Arr::a2s($val['content']);
|
...
|
...
|
|