pull/455/head
skiffer-git 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 5f9f1ab996
commit b0d8fe5c3d

@ -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(&params); err != nil {
log.NewError("0", "BindJSON failed ", err.Error())
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})

Loading…
Cancel
Save