只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife
2015-06-15 18:01:48 +08:00
parent 7e458bb433
commit 6987a38820
1453 changed files with 114561 additions and 91536 deletions

View File

@ -824,7 +824,7 @@ func (c Blog) LikePost(noteId string, callback string) revel.Result {
re.Ok, re.Item = blogService.LikeBlog(noteId, userId)
return c.RenderJsonP(callback, re)
}
func (c Blog) GetComments(noteId string) revel.Result {
func (c Blog) GetComments(noteId string, callback string) revel.Result {
// 评论
userId := c.GetUserId()
page := c.GetPage()
@ -836,6 +836,10 @@ func (c Blog) GetComments(noteId string) revel.Result {
result["comments"] = comments
result["commentUserInfo"] = commentUserInfo
re.Item = result
if callback != "" {
return c.RenderJsonP(callback, result)
}
return c.RenderJson(re)
}