修复
This commit is contained in:
parent
d88ea69574
commit
928715fbfe
@ -1255,26 +1255,26 @@ 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='';
|
||||
$img='<p>';
|
||||
foreach($content['image'] as $k=>$v){
|
||||
$img=$img.'<img src='.$v.'</img>';
|
||||
}
|
||||
$res['content']['content']=$img;
|
||||
$res['content']['content']=$img.'</p>';
|
||||
|
||||
}elseif(is_object($content)){
|
||||
$image= $content->image??[];
|
||||
$img='';
|
||||
$img='<p>';
|
||||
foreach($image as $k=>$v){
|
||||
$img =$img. '<img src='.$v.'</img>';
|
||||
}
|
||||
$res['content']['content']=$img;
|
||||
$res['content']['content']=$img.'</p>';
|
||||
}
|
||||
else{
|
||||
$img='';
|
||||
$img='<p>';
|
||||
foreach($content as $k=>$v){
|
||||
$img =$img. '<img src='.$v.'</img>';
|
||||
}
|
||||
$res['content']['content']=$img;
|
||||
$res['content']['content']=$img.'</p>';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user