作者 lyh

更新产品扩展字段

@@ -108,7 +108,13 @@ class ProductLogic extends BaseLogic @@ -108,7 +108,13 @@ class ProductLogic extends BaseLogic
108 unset($v['title']); 108 unset($v['title']);
109 if(!empty($v['values'])){ 109 if(!empty($v['values'])){
110 if($v['type'] == 3 || $v['type'] || 4){ 110 if($v['type'] == 3 || $v['type'] || 4){
111 - $v['values'] = str_replace_url($v['values']); 111 + if(is_array($v['values'])){
  112 + foreach ($v['values'] as $k1=>$v1){
  113 + $v1 = str_replace_url($v1);
  114 + $v['values'][$k1] = $v1;
  115 + }
  116 + $v['values'] = json_encode($v['values']);
  117 + }
112 } 118 }
113 $v['project_id'] = $this->user['project_id']; 119 $v['project_id'] = $this->user['project_id'];
114 $v['product_id'] = $id; 120 $v['product_id'] = $id;