diff --git a/bin/梦工厂后台AIP文档.md b/bin/梦工厂后台AIP文档.md index b654a65b4..84dba2a25 100644 --- a/bin/梦工厂后台AIP文档.md +++ b/bin/梦工厂后台AIP文档.md @@ -157,4 +157,27 @@ "msg":"成功", "data":"", } +``` + +### 账号封禁API +- 接口名:accountbannotify +- 接口说明:web 服务器给玩家发送邮件 +- 请求地址:{IP}:{port}/accountbannotify +- 请求参数:uid:玩家账号 itype:封禁类型 (0 封号 1 禁言) value :状态(0 解封 1 封禁) +- 请求样例 +``` +{ + "uid":"dfmxf_654b54f01fce80870e761e91", + "itype":0, + "value":1 +} +``` +- 返回参数 code(0:成功 -1 失败),msg(结果描述),data(返回的额外数据) +- 返回样例 +``` +{ + "code":0, + "msg":"成功", + "data":"", +} ``` \ No newline at end of file diff --git a/modules/web/api_account_ban.go b/modules/web/api_account_ban.go index 9f262966d..e85317b20 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:"value"` // 类型对应的值 } //禁封消息 @@ -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(),