作者 lyh

gx脚本更新路由

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