diff --git a/internal/api/user/user.go b/internal/api/user/user.go index cd110d16b..8c20b363d 100644 --- a/internal/api/user/user.go +++ b/internal/api/user/user.go @@ -97,6 +97,8 @@ func GetUsersInfo(c *gin.Context) { func UpdateUserInfo(c *gin.Context) { params := api.UpdateSelfUserInfoReq{} + var t int32 + params.GlobalRecvMsgOpt = &t if err := c.BindJSON(¶ms); err != nil { log.NewError("0", "BindJSON failed ", err.Error()) c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})