1
This commit is contained in:
parent
540fca4015
commit
812c625e1d
@ -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, "")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user