1
This commit is contained in:
parent
d3d6985a99
commit
f7d6bde2e4
@ -322,11 +322,14 @@ func (this *guildMgr) AsyncGetApplyList(lastIdx int64, accountId string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *guildMgr) AsyncApplyJoin(accountId string, guildId string, cb func(int32, string)) {
|
func (this *guildMgr) AsyncApplyJoin(accountId string, guildId string, cb func(int32, string)) {
|
||||||
guild := this.GetGuildByAccountId(accountId)
|
guild := this.internalGetGuildByAccountId(accountId)
|
||||||
if guild != nil {
|
if guild != nil {
|
||||||
cb(0, "")
|
cb(0, "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if guild.joinCondType == constant.JoinCondFree &&
|
||||||
|
!guild.isFull() {
|
||||||
|
} else {
|
||||||
model.GuildApply.Force(
|
model.GuildApply.Force(
|
||||||
guildId,
|
guildId,
|
||||||
accountId,
|
accountId,
|
||||||
@ -337,6 +340,7 @@ func (this *guildMgr) AsyncApplyJoin(accountId string, guildId string, cb func(i
|
|||||||
}
|
}
|
||||||
cb(0, "")
|
cb(0, "")
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *guildMgr) asyncAcceptApplyTask(task *f5.LockAsyncTask, guild *guild,
|
func (this *guildMgr) asyncAcceptApplyTask(task *f5.LockAsyncTask, guild *guild,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user