完善评论功能

This commit is contained in:
lifei6671
2017-05-01 19:12:52 +08:00
parent e6726562ce
commit 97165256c0
8 changed files with 194 additions and 9 deletions

View File

@@ -366,7 +366,7 @@ func (c *ManagerController) DeleteComment() {
comment := models.NewComment()
if err := comment.Find(comment_id); err != nil {
if _,err := comment.Find(comment_id); err != nil {
c.JsonResult(6002,"评论不存在")
}