This commit is contained in:
skiffer-git 2022-06-16 16:12:41 +08:00
parent 3f455199eb
commit 19bbd9b528

View File

@ -197,6 +197,8 @@ func GetUsersInfo(c *gin.Context) {
func UpdateUserInfo(c *gin.Context) {
params := api.UpdateSelfUserInfoReq{}
var t int32
params.GlobalRecvMsgOpt = &t
if err := c.BindJSON(&params); err != nil {
log.NewError("0", "BindJSON failed ", err.Error())
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})