|
@@ -18,7 +18,12 @@ class BannerRepository
|
|
|
public function bannerData($request)
|
|
|
{
|
|
|
$ids = explode(",", $request['ids']);
|
|
|
+ $where = [];
|
|
|
+ $where[] = ['is_open', 1];
|
|
|
+ $where[] = ['use_background', 1];
|
|
|
return $this->banner
|
|
|
+ ->select('image', 'type', 'link_content_id')
|
|
|
+ ->where($where)
|
|
|
->whereIn('id', $ids)
|
|
|
->get();
|
|
|
}
|