|
...
|
...
|
@@ -401,18 +401,20 @@ class ProductLogic extends BaseLogic |
|
|
|
//处理图片
|
|
|
|
$img_arr = explode(',',$data[7]);
|
|
|
|
foreach ($img_arr as $v_img){
|
|
|
|
$one_img = CosService::uploadRemote($project_id,'image_product',$v_img);
|
|
|
|
if($one_img){
|
|
|
|
$one_gallery = [
|
|
|
|
'alt' => '这是一张产品图',
|
|
|
|
'url' => $one_img
|
|
|
|
];
|
|
|
|
if($v_img){
|
|
|
|
$one_img = CosService::uploadRemote($project_id,'image_product',$v_img);
|
|
|
|
if($one_img){
|
|
|
|
$one_gallery = [
|
|
|
|
'alt' => '这是一张产品图',
|
|
|
|
'url' => $one_img
|
|
|
|
];
|
|
|
|
|
|
|
|
if(!$thumb){
|
|
|
|
$thumb = Arr::a2s($one_gallery);
|
|
|
|
}
|
|
|
|
if(!$thumb){
|
|
|
|
$thumb = Arr::a2s($one_gallery);
|
|
|
|
}
|
|
|
|
|
|
|
|
$gallery[] = $one_gallery;
|
|
|
|
$gallery[] = $one_gallery;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|