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
9172e7e9
Commit
9172e7e9
authored
Aug 27, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
717640fb
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
180 additions
and
0 deletions
+180
-0
forumThread.js
app/controllers/mobile/forumThread.js
+168
-0
forumCommentService.js
app/service/forumCommentService.js
+12
-0
No files found.
app/controllers/mobile/forumThread.js
View file @
9172e7e9
This diff is collapsed.
Click to expand it.
app/service/forumCommentService.js
View file @
9172e7e9
...
...
@@ -289,3 +289,15 @@ exports.getCommentParent = function(cid,callback){
callback
(
err
,
doc
);
});
};
//根据ID获取评论
exports
.
getPopulateCommentById
=
function
(
cid
,
callback
){
ForumComment
.
findById
({
_id
:
cid
}).
populate
({
path
:
'from to'
,
select
:
'uid nickName icon'
}).
exec
(
function
(
err
,
c
){
if
(
err
)
{
console
.
error
(
err
);
callback
(
null
,
null
);
}
else
{
callback
(
null
,
c
);
}
});
};
\ No newline at end of file
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