作者 lyh

gx

@@ -271,9 +271,6 @@ class ProductLogic extends BaseLogic @@ -271,9 +271,6 @@ class ProductLogic extends BaseLogic
271 } 271 }
272 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []); 272 $param['thumb'] = Arr::a2s($param['gallery'][0] ?? []);
273 $param['gallery'] = Arr::a2s($param['gallery'] ?? []); 273 $param['gallery'] = Arr::a2s($param['gallery'] ?? []);
274 - }else{  
275 - $param['gallery'] = Arr::a2s([]);  
276 - $param['thumb'] = Arr::a2s([]);  
277 } 274 }
278 if(isset($param['files'])){ 275 if(isset($param['files'])){
279 foreach ($param['files'] as $k => $v){ 276 foreach ($param['files'] as $k => $v){
@@ -289,11 +286,11 @@ class ProductLogic extends BaseLogic @@ -289,11 +286,11 @@ class ProductLogic extends BaseLogic
289 } 286 }
290 $param['video'] = Arr::a2s($param['video'] ?? []); 287 $param['video'] = Arr::a2s($param['video'] ?? []);
291 } 288 }
292 - $param['attrs'] = Arr::a2s($param['attrs'] ?? []);  
293 - $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');  
294 - if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ 289 + if(isset($param['keyword_id'])){
295 $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; 290 $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).',';
296 } 291 }
  292 + $param['attrs'] = Arr::a2s($param['attrs'] ?? []);
  293 + $param['attr_id'] = Arr::arrToSet($param['attr_id'] ?? '');
297 $param['describe'] = Arr::a2s($param['describe'] ?? []); 294 $param['describe'] = Arr::a2s($param['describe'] ?? []);
298 $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? ''); 295 $param['describe_id'] = Arr::arrToSet($param['describe_id'] ?? '');
299 $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? ''); 296 $param['seo_mate'] = Arr::a2s($param['seo_mate'] ?? '');