更新
This commit is contained in:
parent
875f8d019d
commit
abca5dd7c7
@ -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='<p>';
|
||||
foreach($content['image'] as $k=>$v){
|
||||
$img =$img. '<img src="'.$v.'"/>';
|
||||
}
|
||||
$res['content']['content']=$img.'</p>';
|
||||
// $img='<p>';
|
||||
$image= $content['image']??[];
|
||||
// foreach($content['image'] as $k=>$v){
|
||||
// $img =$img. '<img src="'.$v.'"/>';
|
||||
// }
|
||||
$res['content']['content']=['image'=>$image];
|
||||
|
||||
}elseif(is_object($content)){
|
||||
$image= $content->image??[];
|
||||
$img='<p>';
|
||||
foreach($image as $k=>$v){
|
||||
$img =$img. '<img src="'.$v.'"/>';
|
||||
}
|
||||
$res['content']['content']=$img.'</p>';
|
||||
// $img='<p>';
|
||||
// foreach($image as $k=>$v){
|
||||
// $img =$img. '<img src="'.$v.'"/>';
|
||||
// }
|
||||
$res['content']['content']=['image'=>$image];
|
||||
}
|
||||
else{
|
||||
$res['content']['content']=$content;
|
||||
|
Loading…
x
Reference in New Issue
Block a user