|
...
|
...
|
@@ -823,31 +823,6 @@ class ProductLogic extends BaseLogic |
|
|
|
CategoryRelated::saveRelated($id, $category_arr);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}else{
|
|
|
|
$gallery = [];
|
|
|
|
$thumb = '';
|
|
|
|
if($data[7]??''){
|
|
|
|
//处理图片
|
|
|
|
$img_arr = explode('^v6sp$',$data[7]);
|
|
|
|
foreach ($img_arr as $v_img){
|
|
|
|
if($v_img){
|
|
|
|
$one_img = check_remote_url_down($v_img,$project_id,$domain);
|
|
|
|
if($one_img){
|
|
|
|
$one_gallery = [
|
|
|
|
'alt' => '',
|
|
|
|
'url' => $one_img
|
|
|
|
];
|
|
|
|
|
|
|
|
if(!$thumb){
|
|
|
|
$thumb = Arr::a2s($one_gallery);
|
|
|
|
}
|
|
|
|
|
|
|
|
$gallery[] = $one_gallery;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->model->edit(['thumb'=>$thumb,'gallery' => Arr::a2s($gallery)],['id'=>$product['id']]);
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
...
|
...
|
|