diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 17c6c7adc..273592b16 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -304,7 +304,13 @@ class PromoteController extends BaseController } public function getIndexTip() { - $data = M("promote_notice","tab_")->where("is_open = 1")->getField('content'); + $where = [ + "_string"=>"1=1" + ]; + if(session('promote_auth')['account'] != 'yunyingbu'){ + $where['_string'] .= " AND is_open = 1"; + } + $data = M("promote_notice","tab_")->where($where)->getField('content'); if($data){ $this->assign('index_tip',$data); } diff --git a/Application/Home/View/default/Promote/index.html b/Application/Home/View/default/Promote/index.html index 91e63e24c..0f3bd4349 100644 --- a/Application/Home/View/default/Promote/index.html +++ b/Application/Home/View/default/Promote/index.html @@ -217,14 +217,14 @@