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