This commit is contained in:
aozhiwei 2024-04-19 10:43:49 +08:00
parent d3d6985a99
commit f7d6bde2e4

View File

@ -322,11 +322,14 @@ func (this *guildMgr) AsyncGetApplyList(lastIdx int64, accountId string,
}
func (this *guildMgr) AsyncApplyJoin(accountId string, guildId string, cb func(int32, string)) {
guild := this.GetGuildByAccountId(accountId)
guild := this.internalGetGuildByAccountId(accountId)
if guild != nil {
cb(0, "")
return
}
if guild.joinCondType == constant.JoinCondFree &&
!guild.isFull() {
} else {
model.GuildApply.Force(
guildId,
accountId,
@ -338,6 +341,7 @@ func (this *guildMgr) AsyncApplyJoin(accountId string, guildId string, cb func(i
cb(0, "")
})
}
}
func (this *guildMgr) asyncAcceptApplyTask(task *f5.LockAsyncTask, guild *guild,
accountId string, targetId string,