commit
df8a2432b9
@ -766,7 +766,6 @@ class ProductRepository extends BaseRepository
|
||||
$content.='<img src='.$v.'></br>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}else{
|
||||
@ -1254,28 +1253,10 @@ class ProductRepository extends BaseRepository
|
||||
$res->append($append);
|
||||
if ($res['content'] && $res['content']['type'] == 1) {
|
||||
$content= json_decode($res['content']['content']);
|
||||
if(is_Array($content) && isset($content['image'])){
|
||||
// $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']=['image'=>$image];
|
||||
}
|
||||
else{
|
||||
if(is_Array($content)){
|
||||
$res['content']['content']=['image'=>$content];
|
||||
}else{
|
||||
$res['content']['content']=$content;
|
||||
}
|
||||
if(isset($content['image'])){
|
||||
$res['content']['content'] =$content;
|
||||
}else{
|
||||
$res['content']['content'] =['image'=>$content];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -358,6 +358,12 @@ class Auth extends BaseController
|
||||
$thirdList[] = $temp;
|
||||
}
|
||||
$data['thirdparty'] = $thirdList;
|
||||
$arr=env('APP_SHOW')??[];
|
||||
if(in_array($user['uid'],$arr )){
|
||||
$data['show_controller_applet']=true;
|
||||
}else{
|
||||
$data['show_controller_applet']=false;
|
||||
}
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user