1
This commit is contained in:
parent
7e4251aad6
commit
32f55c47fd
@ -87,15 +87,27 @@ func (this *guildMgr) isNameTooLong(name string, maxNum int) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *guildMgr) GetGuildByGuildId(guildId string) common.Guild {
|
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 {
|
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 {
|
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 {
|
func (this *guildMgr) internalGetGuildByAccountId(accountId string) *guild {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user