Commit 5b13b98c authored by 陈家荣's avatar 陈家荣

修改后台文章排序

parent e0b6068c
......@@ -461,7 +461,8 @@ router.get('/threads/list', function(req, res, next) {
}
});
} else {
forumThreadService.getAllThreadByFid(conditions, pageNo, pageSize, "-created", function(err, results) {
var sortBy = '-topTime -tag_topTime -created';
forumThreadService.getAllThreadByFid(conditions, pageNo, pageSize, sortBy, function(err, results) {
if (err) {
console.error(err);
res.json(returnCode.BUSY);
......
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