Commit 1525dd99 authored by 陈家荣's avatar 陈家荣

77

parent cdd80c24
...@@ -1026,7 +1026,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1026,7 +1026,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
if(tid && ent_code){ if(tid && ent_code){
var conditions = { var conditions = {
ent_code: ent_code, ent_code: ent_code,
thread: tid thread: tid,
level:1
}; };
//查询所有评论 //查询所有评论
...@@ -1101,8 +1102,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1101,8 +1102,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
rows.push(this_row); rows.push(this_row);
if(comment.comments.length > 0){ if(comment.comments.length > 0){
for (var i = comment.comments.length - 1; i >= 0; i--) { for (var k = 0; k < comment.comments.length; k++) {
var sub_comment = comment.comments[i]; var sub_comment = comment.comments[k];
var time = date_format(sub_comment.created); var time = date_format(sub_comment.created);
var nickName = sub_comment.from.nickName || ''; var nickName = sub_comment.from.nickName || '';
......
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