作者 lyh

gx脚本更新路由

... ... @@ -550,7 +550,7 @@ class ProductLogic extends BaseLogic
public function copyColumn($product_id,$new_product_id){
$columnModel = new Column();
$columnList = $columnModel->list(['product_id'=>$product_id]);
if(!empty($columnInfo)){
if(!empty($columnList)){
$data = [];
foreach ($columnList as $k => $v){
unset($v['id']);
... ... @@ -573,7 +573,7 @@ class ProductLogic extends BaseLogic
public function copyDetail($product_id,$new_product_id){
$detailModel = new Detail();
$detailList = $detailModel->list(['product_id'=>$product_id]);
if(!empty($columnInfo)){
if(!empty($detailList)){
$data = [];
foreach ($detailList as $k => $v){
unset($v['id']);
... ...