修复
This commit is contained in:
parent
928715fbfe
commit
dd7bc802ff
@ -1257,7 +1257,7 @@ class ProductRepository extends BaseRepository
|
|||||||
if(is_Array($content) && isset($content['image'])){
|
if(is_Array($content) && isset($content['image'])){
|
||||||
$img='<p>';
|
$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.'/>';
|
||||||
}
|
}
|
||||||
$res['content']['content']=$img.'</p>';
|
$res['content']['content']=$img.'</p>';
|
||||||
|
|
||||||
@ -1265,16 +1265,12 @@ class ProductRepository extends BaseRepository
|
|||||||
$image= $content->image??[];
|
$image= $content->image??[];
|
||||||
$img='<p>';
|
$img='<p>';
|
||||||
foreach($image as $k=>$v){
|
foreach($image as $k=>$v){
|
||||||
$img =$img. '<img src='.$v.'</img>';
|
$img =$img. '<img src='.$v.'/>';
|
||||||
}
|
}
|
||||||
$res['content']['content']=$img.'</p>';
|
$res['content']['content']=$img.'</p>';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$img='<p>';
|
$res['content']['content']=$content;
|
||||||
foreach($content as $k=>$v){
|
|
||||||
$img =$img. '<img src='.$v.'</img>';
|
|
||||||
}
|
|
||||||
$res['content']['content']=$img.'</p>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user