Commit 62287ecf authored by 陈家荣's avatar 陈家荣

update

parent 7a830302
...@@ -192,7 +192,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -192,7 +192,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);
} }
}); });
...@@ -208,6 +208,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -208,6 +208,7 @@ router.get('/thread/:tid/get', function(req, res, next) {
} }
}); });
}else{ }else{
datas.push({})
callback(null, datas); callback(null, datas);
} }
}, },
...@@ -216,7 +217,7 @@ router.get('/thread/:tid/get', function(req, res, next) { ...@@ -216,7 +217,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