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

3.论坛 - API - 文章排序

parent 0d65869c
......@@ -133,7 +133,7 @@ router.get('/info/:fid/threads', function(req, res, next) {
var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10;
var fid = req.params.fid;
var sort = 'top -topTime -created'
var sort = '-top -topTime -created'
var conditions = {
ent_code: req.session.user.ent_code,
level: 1
......
......@@ -58,7 +58,7 @@ router.get('/tag/:tid/threads', function(req, res, next) {
var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10;
var tid=req.params.tid;
var sort = 'tag_top -tag_topTime -created';
var sort = '-tag_top -tag_topTime -created';
var conditions={
ent_code:req.session.user.ent_code
};
......
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