Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
78f17df7
Commit
78f17df7
authored
Oct 09, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论导出添加openId
parent
c2834ded
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
forumThread.js
app/controllers/admin/forumThread.js
+3
-3
No files found.
app/controllers/admin/forumThread.js
View file @
78f17df7
...
@@ -1097,10 +1097,10 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
...
@@ -1097,10 +1097,10 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
var
praiseCount
=
comment
.
praiseCount
||
0
;
var
praiseCount
=
comment
.
praiseCount
||
0
;
var
praiseNames
=
''
;
var
praiseNames
=
''
;
if
(
comment
.
praiseNames
){
if
(
comment
.
praiseNames
){
praiseNames
=
comment
.
praiseNames
.
toString
();
praiseNames
=
comment
.
praiseNames
.
toString
()
||
'游客'
;
}
}
var
this_row
=
[
floor
+
''
,
time
,
nickName
,
content
,
praiseCount
,
praiseNames
];
var
this_row
=
[
floor
+
''
,
time
,
openId
,
nickName
,
content
,
praiseCount
,
praiseNames
];
rows
.
push
(
this_row
);
rows
.
push
(
this_row
);
if
(
comment
.
comments
.
length
>
0
){
if
(
comment
.
comments
.
length
>
0
){
...
@@ -1112,7 +1112,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
...
@@ -1112,7 +1112,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
var
nickName
=
sub_comment
.
from
.
nickName
||
'游客'
;
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
,
openId
,
nickName
,
content
,
null
,
null
];
rows
.
push
(
this_row
);
rows
.
push
(
this_row
);
};
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment