1
This commit is contained in:
parent
2397691fbb
commit
3ba021ee2a
@ -157,6 +157,7 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
|
||||
}
|
||||
this.delMember(m.memberId)
|
||||
_guildMgr.delGuildMember(m.memberId)
|
||||
GetDbLogMgr().GuildLeave(this.guildId, m.memberId)
|
||||
if m.isJob(constant.GuildMemberLevelLeader) {
|
||||
nextLeader := this.chooseLeader()
|
||||
if nextLeader != nil {
|
||||
|
@ -499,6 +499,7 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
|
||||
return
|
||||
}
|
||||
member.guildJob = guildJob
|
||||
GetDbLogMgr().GuildSetJob(guild.guildId, accountId, targetId, guildJob)
|
||||
if member.guildJob == constant.GuildMemberLevelLeader {
|
||||
model.GuildMember.SetJob(guild.guildId, owner.memberId,
|
||||
constant.GuildMemberLevelDefault,
|
||||
@ -509,6 +510,7 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
|
||||
return
|
||||
}
|
||||
owner.guildJob = constant.GuildMemberLevelDefault
|
||||
GetDbLogMgr().GuildSetJob(guild.guildId, accountId, owner.memberId, owner.guildJob)
|
||||
task.SetSucc()
|
||||
cb(0, "", guild.guildId, guild.guildName)
|
||||
})
|
||||
@ -556,6 +558,7 @@ func (this *guildMgr) AsyncKickout(accountId string, targetId string,
|
||||
}
|
||||
guild.delMember(targetId)
|
||||
this.delGuildMember(targetId)
|
||||
GetDbLogMgr().GuildKickout(guild.guildId, accountId, targetId)
|
||||
task.SetSucc()
|
||||
cb(0, "", guild.guildId, guild.guildName)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user