Commit a80edc73 authored by 陈家荣's avatar 陈家荣

Merge branch 'newfunc_0510_forum_management' into SANDBOX

parents 56207bbb 62287ecf
...@@ -193,7 +193,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -193,7 +193,7 @@ router.get('/thread/:tid/get', function(req, res, next) {
if (err) { if (err) {
callback(err, null); callback(err, null);
} else { } else {
datas.push(results) datas.push(results);
callback(null, datas); callback(null, datas);
} }
}); });
...@@ -209,6 +209,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -209,6 +209,7 @@ router.get('/thread/:tid/get', function(req, res, next) {
} }
}); });
}else{ }else{
datas.push({})
callback(null, datas); callback(null, datas);
} }
}, },
...@@ -217,7 +218,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -217,7 +218,7 @@ router.get('/thread/:tid/get', function(req, res, next) {
if (err) { if (err) {
callback(err, null); callback(err, null);
} else { } else {
datas.push(result) datas.push(result);
callback(null, datas); callback(null, datas);
} }
}); });
......
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