diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 0a542560..de9f74cb 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -1255,19 +1255,20 @@ class ProductRepository extends BaseRepository if ($res['content'] && $res['content']['type'] == 1) { $content= json_decode($res['content']['content']); if(is_Array($content) && isset($content['image'])){ - $img='

'; - foreach($content['image'] as $k=>$v){ - $img =$img. ''; - } - $res['content']['content']=$img.'

'; + // $img='

'; + $image= $content['image']??[]; + // foreach($content['image'] as $k=>$v){ + // $img =$img. ''; + // } + $res['content']['content']=['image'=>$image]; }elseif(is_object($content)){ $image= $content->image??[]; - $img='

'; - foreach($image as $k=>$v){ - $img =$img. ''; - } - $res['content']['content']=$img.'

'; + // $img='

'; + // foreach($image as $k=>$v){ + // $img =$img. ''; + // } + $res['content']['content']=['image'=>$image]; } else{ $res['content']['content']=$content;