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
08dc1c10
Commit
08dc1c10
authored
Oct 19, 2015
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix_1019_comment_export'
parents
0b98ff16
f1147608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
forumThread.js
app/controllers/admin/forumThread.js
+2
-2
No files found.
app/controllers/admin/forumThread.js
View file @
08dc1c10
...
@@ -1169,7 +1169,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
...
@@ -1169,7 +1169,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
nickName
=
comment
.
from
.
nickName
||
'游客'
;
nickName
=
comment
.
from
.
nickName
||
'游客'
;
}
}
var
this_row
=
[
floor
+
''
,
time
,
openId
,
nickName
,
encode
(
content
,
'utf-8'
)
,
praiseCount
.
toString
(),
praiseNames
,
praiseOpenIds
,
null
,
null
];
var
this_row
=
[
floor
+
''
,
time
,
openId
,
nickName
,
content
,
praiseCount
.
toString
(),
praiseNames
,
praiseOpenIds
,
null
,
null
];
rows
.
push
(
this_row
);
rows
.
push
(
this_row
);
if
(
comment
.
comments
.
length
>
0
){
if
(
comment
.
comments
.
length
>
0
){
for
(
var
k
=
0
;
k
<
comment
.
comments
.
length
;
k
++
)
{
for
(
var
k
=
0
;
k
<
comment
.
comments
.
length
;
k
++
)
{
...
@@ -1187,7 +1187,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
...
@@ -1187,7 +1187,7 @@ router.get('/thread/:tid/exportComments', function(req, res, next) {
if
(
sub_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
,
null
,
null
];
var
this_row
=
[
nickName
+
' 回复 '
+
to
,
time
,
openId
,
nickName
,
content
,
'0'
,
null
,
null
,
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