作者 lyh

gx

@@ -107,12 +107,14 @@ class ProductLogic extends BaseLogic @@ -107,12 +107,14 @@ class ProductLogic extends BaseLogic
107 if(!empty($extend)){ 107 if(!empty($extend)){
108 foreach ($extend as $v){ 108 foreach ($extend as $v){
109 unset($v['title']); 109 unset($v['title']);
110 - if($v['type'] == 3 || $v['type'] || 4){  
111 - $v['values'] = str_replace_url($v['values']); 110 + if(!empty($values)){
  111 + if($v['type'] == 3 || $v['type'] || 4){
  112 + $v['values'] = str_replace_url($v['values']);
  113 + }
  114 + $v['project_id'] = $this->user['project_id'];
  115 + $v['product_id'] = $id;
  116 + $extendInfoModel->add($v);
112 } 117 }
113 - $v['project_id'] = $this->user['project_id'];  
114 - $v['product_id'] = $id;  
115 - $extendInfoModel->add($v);  
116 } 118 }
117 } 119 }
118 return $this->success(); 120 return $this->success();