This commit is contained in:
aozhiwei 2024-04-09 16:27:39 +08:00
parent f57c2ecd10
commit 7f0e0d0e4a

View File

@ -70,10 +70,10 @@ func (this *guild) traverseMembers(cb func(*member) bool) {
}
func (this *guild) isOwner(accountId string) bool {
if this.getMember(accountId) == nil {
return false
if m := this.getMember(accountId); m != nil {
return m.guildJob == constant.GuildMemberLevelLeader
}
return this.ownerId == accountId
return false
}
func (this *guild) updateByKv(kv map[int32]string) {