|
...
|
...
|
@@ -287,8 +287,6 @@ class ProductLogic extends BaseLogic |
|
|
|
$param = [
|
|
|
|
'project_id'=>$info['project_id'],
|
|
|
|
'title'=>$info['title']."-copy",
|
|
|
|
'thumb'=>Arr::a2s($info['thumb']),
|
|
|
|
'gallery'=>Arr::a2s($info['gallery']),
|
|
|
|
'attrs'=>Arr::a2s($info['attrs']),
|
|
|
|
'attr_id'=>Arr::arrToSet($info['attr_id']),
|
|
|
|
'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '',
|
|
...
|
...
|
@@ -308,6 +306,15 @@ class ProductLogic extends BaseLogic |
|
|
|
'created_at'=>date('Y-m-d H:i:s'),
|
|
|
|
'updated_at'=>date('Y-m-d H:i:s'),
|
|
|
|
];
|
|
|
|
if(!empty($info['thumb'])){
|
|
|
|
$param['thumb']= Arr::a2s($info['thumb']);
|
|
|
|
}
|
|
|
|
if(!empty($info['gallery'])){
|
|
|
|
$param['gallery']= Arr::a2s($info['gallery']);
|
|
|
|
}
|
|
|
|
if(!empty($info['icon'])){
|
|
|
|
$param['icon']= Arr::a2s($info['icon']);
|
|
|
|
}
|
|
|
|
return $param;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|