This commit is contained in:
aozhiwei 2024-04-08 11:19:39 +08:00
parent 7e4251aad6
commit 32f55c47fd

View File

@ -87,15 +87,27 @@ func (this *guildMgr) isNameTooLong(name string, maxNum int) bool {
}
func (this *guildMgr) GetGuildByGuildId(guildId string) common.Guild {
return this.internalGetGuildByGuildId(guildId)
if p := this.internalGetGuildByGuildId(guildId); p != nil {
return p
} else {
return nil
}
}
func (this *guildMgr) GetGuildByAccountId(accountId string) common.Guild {
return this.internalGetGuildByGuildId(accountId)
if p := this.internalGetGuildByAccountId(accountId); p != nil {
return p
} else {
return nil
}
}
func (this *guildMgr) GetGuildByGuildName(guildName string) common.Guild {
return this.internalGetGuildByGuildName(guildName)
if p := this.internalGetGuildByGuildName(guildName); p != nil {
return p
} else {
return nil
}
}
func (this *guildMgr) internalGetGuildByAccountId(accountId string) *guild {