This commit is contained in:
aozhiwei 2024-04-04 14:17:09 +08:00
parent 98a20af7c2
commit 9a4a7097a7

View File

@ -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) {