作者 lyh

更新产品扩展字段

@@ -102,7 +102,7 @@ class ProductLogic extends BaseLogic @@ -102,7 +102,7 @@ class ProductLogic extends BaseLogic
102 public function saveExtendInfo($product_id,$extend){ 102 public function saveExtendInfo($product_id,$extend){
103 //先删除以前的数据 103 //先删除以前的数据
104 $extendInfoModel = new ExtendInfo(); 104 $extendInfoModel = new ExtendInfo();
105 - $extendInfoModel->del(['project_id'=>$this->user['project_id']]); 105 + $extendInfoModel->del(['product_id'=>$product_id]);
106 if(empty($extend)) { 106 if(empty($extend)) {
107 return $this->success(); 107 return $this->success();
108 } 108 }