This commit is contained in:
aozhiwei 2024-04-09 15:49:51 +08:00
parent 79cd9b8290
commit 8585df68ce

View File

@ -176,6 +176,13 @@ func (this* guildMgr) removeUsingName(name string) {
delete(this.usingNameHash, name) 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, func (this *guildMgr) asyncCreateGuildTask(task *f5.AsyncTask,
guildId string, accountId string, avatar int32, name string, guildId string, accountId string, avatar int32, name string,
cb func(int32, string, string)) { cb func(int32, string, string)) {
@ -548,7 +555,8 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
cb(0, "") cb(0, "")
return; return;
} }
if guild.getMember(targetId) == nil { member := guild.getMember(targetId)
if member == nil {
cb(0, "") cb(0, "")
return; return;
} }