Explorar o código

我的留言筛选

ziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
ae3e9a53e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)