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

游客

parent 78f17df7
......@@ -1058,7 +1058,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
if(results){
var praiseNames = [];
_.forEach(results, function(e2) {
praiseNames.push(e2.user.nickName);
praiseNames.push(e2.user.nickName || '游客');
});
e.praiseNames = praiseNames;
e.praiseCount = results.length;
......@@ -1097,7 +1097,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
var praiseCount = comment.praiseCount || 0;
var praiseNames = '';
if(comment.praiseNames){
praiseNames = comment.praiseNames.toString() || '游客';
praiseNames = comment.praiseNames.toString();
}
var this_row = [floor + '', time,openId, nickName, content, praiseCount, praiseNames];
......
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