Merge pull request 'preview' (#46) from preview into master
Reviewed-on: #46
This commit is contained in:
commit
8cedb08510
@ -767,7 +767,6 @@ class ProductRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$content = $arr;
|
$content = $arr;
|
||||||
@ -1254,28 +1253,10 @@ class ProductRepository extends BaseRepository
|
|||||||
$res->append($append);
|
$res->append($append);
|
||||||
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(isset($content['image'])){
|
||||||
// $img='<p>';
|
$res['content']['content'] =$content;
|
||||||
$image= $content['image']??[];
|
}else{
|
||||||
// foreach($content['image'] as $k=>$v){
|
$res['content']['content'] =['image'=>$content];
|
||||||
// $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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,6 +358,12 @@ class Auth extends BaseController
|
|||||||
$thirdList[] = $temp;
|
$thirdList[] = $temp;
|
||||||
}
|
}
|
||||||
$data['thirdparty'] = $thirdList;
|
$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);
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user