From b0d8fe5c3d3ccae1986de4cb49bed855908509ef Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 16 Jun 2022 16:12:41 +0800 Subject: [PATCH] fix bug --- internal/api/user/user.go | 2 ++ 1 file changed, 2 insertions(+) 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()})