浏览代码

我的留言筛选

ziwen 2 年之前
父节点
当前提交
ae3e9a53e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/user.go

+ 1 - 1
controllers/user.go

@@ -1548,7 +1548,7 @@ func (this *UserController) CommnetList() {
 		br.Ret = 408
 		return
 	}
-	commentType, _ := this.GetInt("CommentType")
+	commentType, _ := this.GetInt("CommentType", 1)
 
 	userId := this.User.UserId
 	commentlist, err := models.GetCommentList(userId, commentType)