Commit 4c5d9710 authored by strong's avatar strong

Merge commit '6c5f284d' into SANDBOX

parents 45f460af 6c5f284d
...@@ -100,7 +100,7 @@ router.get('/info/:fid/get', function(req, res, next) { ...@@ -100,7 +100,7 @@ router.get('/info/:fid/get', function(req, res, next) {
res.json(returnCode.BUSY); res.json(returnCode.BUSY);
} else { } else {
var rs = {}; var rs = {};
rs.data = results[0]; rs.data = results[0].toObject();
rs.data.threadCount = results[1]; rs.data.threadCount = results[1];
res.json(_.assign(rs, returnCode.SUCCESS)); res.json(_.assign(rs, returnCode.SUCCESS));
} }
...@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) { ...@@ -167,18 +167,17 @@ router.get('/info/:fid/threads', function(req, res, next) {
if (fid) { if (fid) {
async.waterfall([ async.waterfall([
function(callback) { function(callback) {
callback(null, null); forumUserThreadControlService.getUserThreadControlById(user.getMobileUser(req), function(err, doc) {
// forumUserThreadControlService.getUserThreadControlById(user.getMobileUser(req), function(err, doc) { if (err) {
// if (err) { callback(err, null);
// callback(err, null); } else {
// } else { if (doc) {
// if (doc) { callback(null, doc);
// callback(null, doc); } else {
// } else { callback(null, null);
// callback(null, null); }
// } }
// } });
// });
} }
], function(err, result) { ], function(err, result) {
if (err) { if (err) {
......
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