diff --git a/modules/web/api_account_ban.go b/modules/web/api_account_ban.go index 9f262966d..3d3aef58d 100644 --- a/modules/web/api_account_ban.go +++ b/modules/web/api_account_ban.go @@ -10,9 +10,9 @@ import ( // 封号或禁言 type AccountBanReq struct { - Uid string `json:"uid"` // uid - iType int32 // 0 封号 1 禁言 - iValue int32 // 类型对应的值 + Uid string `json:"uid"` // uid + IType int32 `json:"iType"` // 0 封号 1 禁言 + Value int32 `json:"iValue"` // 类型对应的值 } //禁封消息 @@ -32,8 +32,8 @@ func (this *Api_Comp) AccountBanNotify(c *engine.Context) { rpcMsg := &pb.RPCAccountBan{ Uid: req.Uid, - Key: req.iType, - Value: req.iValue, + Key: req.IType, + Value: req.Value, } if _, err = this.module.service.RpcGo( context.Background(),