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

更新帖子评论导出信息

parent 0e24a200
...@@ -1076,6 +1076,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1076,6 +1076,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
conf.cols = [ conf.cols = [
{caption:'楼层', type:'string'}, {caption:'楼层', type:'string'},
{caption:'发布时间', type:'Date'}, {caption:'发布时间', type:'Date'},
{caption:'openId', type:'string'},
{caption:'会员名', type:'string'}, {caption:'会员名', type:'string'},
{caption:'内容', type:'string'}, {caption:'内容', type:'string'},
{caption:'点赞数', type:'number'}, {caption:'点赞数', type:'number'},
...@@ -1090,7 +1091,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1090,7 +1091,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
var floor = comment.floor; var floor = comment.floor;
var time = date_format(comment.created); var time = date_format(comment.created);
var nickName = comment.from.nickName || ''; var openId = comment.from.uid || '';
var nickName = comment.from.nickName || '游客';
var content = comment.content || ''; var content = comment.content || '';
var praiseCount = comment.praiseCount || 0; var praiseCount = comment.praiseCount || 0;
var praiseNames = ''; var praiseNames = '';
...@@ -1106,7 +1108,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) { ...@@ -1106,7 +1108,8 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
var sub_comment = comment.comments[k]; 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 openId = sub_comment.from.uid || '';
var nickName = sub_comment.from.nickName || '游客';
var content = sub_comment.content || ''; var content = sub_comment.content || '';
var this_row = ['子评论', time, nickName, content, null, null]; var this_row = ['子评论', time, nickName, content, 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