From a85e37de04fab007da2dd9f41acb87710f4df254 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 25 Nov 2021 15:08:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=85yunyingbu?= =?UTF-8?q?=E8=83=BD=E7=9C=8B=E5=88=B0=E5=85=AC=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PromoteController.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } From 663cbf16bcf7a54f02736a6147654b301676224d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 25 Nov 2021 16:13:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=80=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/View/default/Promote/index.html | 6 +++--- Public/Admin/images/tgxw.jpg | Bin 0 -> 152016 bytes 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 Public/Admin/images/tgxw.jpg diff --git a/Application/Home/View/default/Promote/index.html b/Application/Home/View/default/Promote/index.html index 91e63e24c..a35186512 100644 --- a/Application/Home/View/default/Promote/index.html +++ b/Application/Home/View/default/Promote/index.html @@ -217,14 +217,14 @@