单服黑名单

master
czx 2023-08-22 09:37:23 +08:00
parent edece153c6
commit 26a9a99f92
1 changed files with 2 additions and 2 deletions

View File

@ -1091,7 +1091,7 @@ func (action *Action) SaveSingleBlackList(r *ghttp.Request) {
} else {
blackList.UnblockTime = -1
}
/*ages := uid + strconv.FormatInt(blackList.UnblockTime, 10)
ages := uid + strconv.FormatInt(blackList.UnblockTime, 10)
cmdStr := "addblack"
singleResult := gameinfo.ModelServer.FindOne("server_id", serverId)
var serverInfo gameinfo.ServerInfo
@ -1117,7 +1117,7 @@ func (action *Action) SaveSingleBlackList(r *ghttp.Request) {
base.Resp(r, 1, "thrift打开服务器socket出错", nil)
} else if res != 0 {
base.Resp(r, 1, "操作失败", nil)
}*/
}
res1 := gameinfo.ModelSingleBlackList.AddBlackList(id, "", blackList)
if res1 > 0 {
base.Succ(r, g.Map{"code": 0, "result": "操作成功"})