Commit 57a7dcb5 authored by 陈家荣's avatar 陈家荣

update 4

parent f25593b7
......@@ -344,7 +344,7 @@ router.get('/user/getUserFavorUser', function(req, res, next) {
from: d.to._id,
status: 1
};
forumThreadService.getByConditionsSelectyFieldWithOpentions(conditions, 'title', 1, 0, '-_id', function(err, thread) {
forumThreadService.getByConditionsSelectyFieldWithOpentions(conditions, 'title content info', 1, 0, '-_id', function(err, thread) {
if (err) {
console.error(err);
cont(err, null);
......@@ -363,7 +363,8 @@ router.get('/user/getUserFavorUser', function(req, res, next) {
console.error(err);
res.json( returnCode.BUSY);
}else{
res.json(_.assign(datas, returnCode.SUCCESS));
results.items = datas;
res.json(_.assign(results, returnCode.SUCCESS));
}
});
});
......
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