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

77

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