Commit 182dcc8d authored by 陈家荣's avatar 陈家荣

后台话题管理增加子话题数量显示

parent d3891854
......@@ -776,7 +776,9 @@ exports.getAllCountByFid = function(conditions, callback) {
function getSubThreads(doc, sort, callback) {
var conditions = {
pid: doc._id,
status: 1
status: {'$ne':3},
level:2,
ent_code:doc.ent_code
};
var sortBy = '-top -quality -created';
if (sort) {
......@@ -800,6 +802,7 @@ function getSubThreads(doc, sort, callback) {
}
});
var obj = {};
obj.docTotal = docs.length;
obj.total = list.length;
obj.items = list;
......
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