Commit f271196d authored by 陈志良's avatar 陈志良

二级评论添加被回复人名称

parent aa700ba2
...@@ -1122,11 +1122,11 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1122,11 +1122,11 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
nickName = '', nickName = '',
content = sub_comment.content || '', content = sub_comment.content || '',
to = ''; to = '';
if(comment.from){ if(sub_comment.from){
openId = sub_comment.from.uid || ''; openId = sub_comment.from.uid || '';
nickName = sub_comment.from.nickName || '游客'; nickName = sub_comment.from.nickName || '游客';
} }
if(comment.to){ if(sub_comment.to){
to = sub_comment.to.nickName || '游客'; to = sub_comment.to.nickName || '游客';
} }
var this_row = [nickName + ' 回复 ' + to, time,openId, nickName, content, 0, null,null]; var this_row = [nickName + ' 回复 ' + to, time,openId, nickName, content, 0, null,null];
......
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