1
This commit is contained in:
parent
79cd9b8290
commit
8585df68ce
@ -176,6 +176,13 @@ func (this* guildMgr) removeUsingName(name string) {
|
||||
delete(this.usingNameHash, name)
|
||||
}
|
||||
|
||||
func (this *guildMgr) isValidGuildJob(guildJob int32) bool {
|
||||
return guildJob == constant.GuildMemberLevelLeader ||
|
||||
guildJob == constant.GuildMemberLevelViceLeader ||
|
||||
guildJob == constant.GuildMemberLevelElite ||
|
||||
guildJob == constant.GuildMemberLevelDefault
|
||||
}
|
||||
|
||||
func (this *guildMgr) asyncCreateGuildTask(task *f5.AsyncTask,
|
||||
guildId string, accountId string, avatar int32, name string,
|
||||
cb func(int32, string, string)) {
|
||||
@ -548,7 +555,8 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
|
||||
cb(0, "")
|
||||
return;
|
||||
}
|
||||
if guild.getMember(targetId) == nil {
|
||||
member := guild.getMember(targetId)
|
||||
if member == nil {
|
||||
cb(0, "")
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user