mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
cms
This commit is contained in:
@@ -463,7 +463,7 @@ func GetUsers(c *gin.Context) {
|
||||
resp api.GetUsersResp
|
||||
reqPb rpc.GetUsersReq
|
||||
)
|
||||
if err := c.Bind(&req); err != nil {
|
||||
if err := c.BindJSON(&req); err != nil {
|
||||
log.NewError(req.OperationID, "Bind failed ", err.Error(), req)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user