作者 lyh

gx

@@ -287,8 +287,6 @@ class ProductLogic extends BaseLogic @@ -287,8 +287,6 @@ class ProductLogic extends BaseLogic
287 $param = [ 287 $param = [
288 'project_id'=>$info['project_id'], 288 'project_id'=>$info['project_id'],
289 'title'=>$info['title']."-copy", 289 'title'=>$info['title']."-copy",
290 - 'thumb'=>Arr::a2s($info['thumb']),  
291 - 'gallery'=>Arr::a2s($info['gallery']),  
292 'attrs'=>Arr::a2s($info['attrs']), 290 'attrs'=>Arr::a2s($info['attrs']),
293 'attr_id'=>Arr::arrToSet($info['attr_id']), 291 'attr_id'=>Arr::arrToSet($info['attr_id']),
294 'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '', 292 'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '',
@@ -308,6 +306,15 @@ class ProductLogic extends BaseLogic @@ -308,6 +306,15 @@ class ProductLogic extends BaseLogic
308 'created_at'=>date('Y-m-d H:i:s'), 306 'created_at'=>date('Y-m-d H:i:s'),
309 'updated_at'=>date('Y-m-d H:i:s'), 307 'updated_at'=>date('Y-m-d H:i:s'),
310 ]; 308 ];
  309 + if(!empty($info['thumb'])){
  310 + $param['thumb']= Arr::a2s($info['thumb']);
  311 + }
  312 + if(!empty($info['gallery'])){
  313 + $param['gallery']= Arr::a2s($info['gallery']);
  314 + }
  315 + if(!empty($info['icon'])){
  316 + $param['icon']= Arr::a2s($info['icon']);
  317 + }
311 return $param; 318 return $param;
312 } 319 }
313 320