修复
This commit is contained in:
parent
fb7c9d832f
commit
68c92e4a5a
@ -1255,26 +1255,26 @@ class ProductRepository extends BaseRepository
|
|||||||
if ($res['content'] && $res['content']['type'] == 1) {
|
if ($res['content'] && $res['content']['type'] == 1) {
|
||||||
$content= json_decode($res['content']['content']);
|
$content= json_decode($res['content']['content']);
|
||||||
if(is_Array($content) && isset($content['image'])){
|
if(is_Array($content) && isset($content['image'])){
|
||||||
$img='';
|
$img='<p>';
|
||||||
foreach($content['image'] as $k=>$v){
|
foreach($content['image'] as $k=>$v){
|
||||||
$img=$img.'<img src='.$v.'</img>';
|
$img=$img.'<img src='.$v.'</img>';
|
||||||
}
|
}
|
||||||
$res['content']['content']=$img;
|
$res['content']['content']=$img.'</p>';
|
||||||
|
|
||||||
}elseif(is_object($content)){
|
}elseif(is_object($content)){
|
||||||
$image= $content->image??[];
|
$image= $content->image??[];
|
||||||
$img='';
|
$img='<p>';
|
||||||
foreach($image as $k=>$v){
|
foreach($image as $k=>$v){
|
||||||
$img =$img. '<img src='.$v.'</img>';
|
$img =$img. '<img src='.$v.'</img>';
|
||||||
}
|
}
|
||||||
$res['content']['content']=$img;
|
$res['content']['content']=$img.'</p>';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$img='';
|
$img='<p>';
|
||||||
foreach($content as $k=>$v){
|
foreach($content as $k=>$v){
|
||||||
$img =$img. '<img src='.$v.'</img>';
|
$img =$img. '<img src='.$v.'</img>';
|
||||||
}
|
}
|
||||||
$res['content']['content']=$img;
|
$res['content']['content']=$img.'</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user