Commit d242c6a0 authored by 陈志良's avatar 陈志良

11

parent 8bbea139
......@@ -137,7 +137,8 @@ router.get('/info/:fid/threads', function(req, res, next) {
var sort = '-top -topTime -created'
var conditions = {
ent_code: req.session.user.ent_code,
level: 1
level: 1,
status:1
};
if (fid) {
conditions.info = fid;
......
......@@ -77,7 +77,7 @@ router.get('/:ent_code/share.js', function(req, res, next) {
type = req.query.type,
id = req.query.id,
uId= req.session.mobileForumUser.userId,
ent_code = req.session.user.ent_code,
ent_code = req.params.ent_code,
mid = 0,
link = '/app/forum/' + ent_code + '/index?pageUrl=',
share_log = {};
......
......@@ -60,7 +60,9 @@ router.get('/tag/:tid/threads', function(req, res, next) {
var tid=req.params.tid;
var sort = '-tag_top -tag_topTime -created';
var conditions={
ent_code:req.session.user.ent_code
ent_code:req.session.user.ent_code,
status:1,
level:1
};
if(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