优化仅yunyingbu能看到公告

master
chenzhi 3 years ago
parent 1928215d85
commit a85e37de04

@ -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);
}

Loading…
Cancel
Save