消息条数

master
Your Name 5 years ago
parent 838301fcb6
commit 5d7aa17f66

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

Loading…
Cancel
Save