This commit is contained in:
aozhiwei 2024-04-09 13:34:54 +08:00
parent 540fca4015
commit 812c625e1d

View File

@ -555,6 +555,25 @@ func (this *guildMgr) AsyncKickout(accountId string, targetId string, cb func(in
{constant.GUILD_MEMBER_LOCK_KEY, targetId},
},
func (task *f5.LockAsyncTask) {
f5.GetJsStyleDb().Update(
constant.FRIEND_DB,
"t_guild_member",
[][]string{
{"deleted", "1"},
},
[][]string{
{"guild_id", guild.guildId},
{"member_id", targetId},
},
func (err error, lastInsertId int64, rowsAffected int64) {
if err != nil {
cb(500, "server internal error")
return
}
delete(guild.idHash, targetId)
delete(this.memberIdHash, targetId)
cb(0, "")
})
})
}