|
|
|
@ -1479,7 +1479,7 @@ class UserController extends BaseController
|
|
|
|
|
|
|
|
|
|
//获取公告未读条数
|
|
|
|
|
$time = time();
|
|
|
|
|
$notice = M('notice', 'tab_')->where('start_time < ' .$time. ' AND (end_time = 0 OR end_time >' . $time . ')')->getField('id',true);
|
|
|
|
|
$notice = M('notice', 'tab_')->where('start_time < ' . $time . ' AND game_id = ' . $user['game_id']. ' AND (end_time = 0 OR end_time >' . $time . ')')->getField('id',true);
|
|
|
|
|
if(!empty($notice))
|
|
|
|
|
{
|
|
|
|
|
$unread_count += count($notice);
|
|
|
|
|