首页列表、广场、我的发布
This commit is contained in:
@@ -30,6 +30,14 @@ class BannerService
|
||||
return new $this->validator;
|
||||
}
|
||||
|
||||
public function getBanner($params){
|
||||
$where = [];
|
||||
if(isset($params['module'])){
|
||||
$where['module'] = $params['module'];
|
||||
}
|
||||
return Banner::where('status','1')->where($where)->get();
|
||||
}
|
||||
|
||||
public function getBannerModule(){
|
||||
return BannerModule::where('status','1')->get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user