Commit 4e5f38f8 authored by strong's avatar strong

Merge branch 'bugfix_0329_sort'

parents ce39b4d9 474b6f0f
......@@ -2089,7 +2089,7 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
var pageSize = req.query.pageSize || 10;
var infoId = req.query.infoId || null;
var tagId = req.query.tagId || null;
var sort = '-top -topTime -_id';
var sort = '-top -top_order_idx -quality -_id';
var ent_code = req.session.user.ent_code;
var today = new Date();
var conditions = {
......@@ -2109,7 +2109,7 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
conditions.info = infoId;
}
if(tagId){
sort = "-tag_top -tag_topTime -_id";
sort = "-tag_top -quality -_id";
conditions.tag={$in:[tagId]};
}
queryThread(conditions, pageNo, pageSize, sort, function(err, results){
......
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