作者 lyh

gx

@@ -135,15 +135,15 @@ class ProductLogic extends BaseLogic @@ -135,15 +135,15 @@ class ProductLogic extends BaseLogic
135 $v['url'] = str_replace_url($v['url']); 135 $v['url'] = str_replace_url($v['url']);
136 $param['gallery'][$k] = $v; 136 $param['gallery'][$k] = $v;
137 } 137 }
138 - $param['thumb'] = Arr::a2s($param['gallery'][0] ?? '');  
139 - $param['gallery'] = Arr::a2s($param['gallery'] ?? ''); 138 + $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
  139 + $param['gallery'] = Arr::a2s($param['gallery'] ?? []);
140 } 140 }
141 - $param['attrs'] = Arr::a2s($param['attrs'] ?? ''); 141 + $param['attrs'] = Arr::a2s($param['attrs'] ?? []);
142 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? ''); 142 $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');
143 if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ 143 if(isset($param['keyword_id']) && !empty($param['keyword_id'])){
144 $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; 144 $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).',';
145 } 145 }
146 - $param['describe'] = Arr::a2s($param['describe'] ?? ''); 146 + $param['describe'] = Arr::a2s($param['describe'] ?? []);
147 $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? ''); 147 $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? '');
148 $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? ''); 148 $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? '');
149 $param['related_product_id'] = Arr::arrToSet($param['related_product_id'] ?? ''); 149 $param['related_product_id'] = Arr::arrToSet($param['related_product_id'] ?? '');
@@ -151,7 +151,7 @@ class ProductLogic extends BaseLogic @@ -151,7 +151,7 @@ class ProductLogic extends BaseLogic
151 foreach ($param['icon'] as $k1 => $v1){ 151 foreach ($param['icon'] as $k1 => $v1){
152 $param['icon'][$k1] = str_replace_url($v1); 152 $param['icon'][$k1] = str_replace_url($v1);
153 } 153 }
154 - $param['icon'] = Arr::a2s($param['icon'] ?? ''); 154 + $param['icon'] = Arr::a2s($param['icon'] ?? []);
155 } 155 }
156 $param['created_uid'] = $this->user['id']; 156 $param['created_uid'] = $this->user['id'];
157 return $param; 157 return $param;