Commit e1b0bc34 authored by 陈家荣's avatar 陈家荣

更新标签获取列表出现未开始活动帖子

parent d2c239e6
...@@ -65,10 +65,19 @@ router.get('/tag/:tid/threads', function(req, res, next) { ...@@ -65,10 +65,19 @@ router.get('/tag/:tid/threads', function(req, res, next) {
var tid=req.params.tid; var tid=req.params.tid;
var sort = '-tag_top -tag_topTime -created'; var sort = '-tag_top -tag_topTime -created';
var ent_code = req.session.user.ent_code; var ent_code = req.session.user.ent_code;
var today = new Date();
var conditions={ var conditions={
ent_code:ent_code, ent_code:ent_code,
status:1, status:1,
level:1 level:1,
$or: [{
isEvent: 0
}, {
isEvent: null
}, {
isEvent: 1,
'event.eventStartTime' : {$lte : today}
}]
}; };
if(tid){ if(tid){
conditions.tag={$in:[tid]}; conditions.tag={$in:[tid]};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment