作者 李宇航

合并分支 'master-server' 到 'master'

gx脚本更新路由



查看合并请求 !975
@@ -550,7 +550,7 @@ class ProductLogic extends BaseLogic @@ -550,7 +550,7 @@ class ProductLogic extends BaseLogic
550 public function copyColumn($product_id,$new_product_id){ 550 public function copyColumn($product_id,$new_product_id){
551 $columnModel = new Column(); 551 $columnModel = new Column();
552 $columnList = $columnModel->list(['product_id'=>$product_id]); 552 $columnList = $columnModel->list(['product_id'=>$product_id]);
553 - if(!empty($columnInfo)){ 553 + if(!empty($columnList)){
554 $data = []; 554 $data = [];
555 foreach ($columnList as $k => $v){ 555 foreach ($columnList as $k => $v){
556 unset($v['id']); 556 unset($v['id']);
@@ -573,7 +573,7 @@ class ProductLogic extends BaseLogic @@ -573,7 +573,7 @@ class ProductLogic extends BaseLogic
573 public function copyDetail($product_id,$new_product_id){ 573 public function copyDetail($product_id,$new_product_id){
574 $detailModel = new Detail(); 574 $detailModel = new Detail();
575 $detailList = $detailModel->list(['product_id'=>$product_id]); 575 $detailList = $detailModel->list(['product_id'=>$product_id]);
576 - if(!empty($columnInfo)){ 576 + if(!empty($detailList)){
577 $data = []; 577 $data = [];
578 foreach ($detailList as $k => $v){ 578 foreach ($detailList as $k => $v){
579 unset($v['id']); 579 unset($v['id']);