1
This commit is contained in:
parent
98a20af7c2
commit
9a4a7097a7
@ -321,9 +321,15 @@ func (this *guildMgr) asyncAcceptApplyTask(task *f5.AsyncTask,
|
||||
}
|
||||
|
||||
func (this *guildMgr) AsyncAcceptApply(accountId string, targetId string, cb func(int32, string)) {
|
||||
guild := this.internalGetGuildByAccountId(accountId)
|
||||
if guild == nil {
|
||||
cb(1, "")
|
||||
return;
|
||||
}
|
||||
f5.GetApp().AsyncLock([][]string{
|
||||
{constant.MEMBER_LOCK_KEY, accountId},
|
||||
{constant.MEMBER_LOCK_KEY, targetId},
|
||||
{constant.GUILD_LOCK_KEY, guild.guildId},
|
||||
},
|
||||
f5.NewAsyncTask(
|
||||
func (task *f5.AsyncTask) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user