Commit 44a7ab05 authored by 陈家荣's avatar 陈家荣

修改排序

parent affa3da9
......@@ -2082,7 +2082,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_order_idx -top -quality -_id';
var sort = '-top -top_order_idx -quality -_id';
var ent_code = req.session.user.ent_code;
var today = new Date();
var conditions = {
......@@ -2102,7 +2102,7 @@ router.get('/thread/getThreadWithNotPopulateComment/hot', function(req, res, nex
conditions.info = infoId;
}
if(tagId){
sort = "-top_order_idx -tag_top -quality -_id";
sort = "-tag_top -top_order_idx -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