This commit is contained in:
aozhiwei 2024-04-09 11:42:26 +08:00
parent 0ffa2047de
commit e64ba3d875

View File

@ -399,6 +399,11 @@ func (this *guildMgr) asyncAcceptApplyTask(task *f5.AsyncTask, guild *guild,
cb(1, "")
return
}
if accountId == targetId {
task.SetFail()
cb(1, "")
return
}
if this.internalGetMemberByAccountId(targetId) != nil {
task.SetFail()
cb(1, "")
@ -440,7 +445,7 @@ func (this *guildMgr) asyncAcceptApplyTask(task *f5.AsyncTask, guild *guild,
func (this *guildMgr) AsyncAcceptApply(accountId string, targetId string, cb func(int32, string)) {
guild := this.internalGetGuildByAccountId(accountId)
if guild == nil {
cb(1, "")
cb(0, "")
return;
}
f5.NewLockAsyncTask([][]string{