This commit is contained in:
aozhiwei 2024-04-04 22:01:07 +08:00
parent a353bec8f4
commit d896f9c5b0

View File

@ -383,7 +383,18 @@ func (this *guildMgr) AsyncAcceptApply(accountId string, targetId string, cb fun
func (this *guildMgr) AsyncRejectApply(accountId string, targetId string,
cb func(int32, string)) {
cb(0, "")
guild := this.internalGetGuildByAccountId(accountId)
if guild == nil {
cb(0, "")
return;
}
this.asyncSetApplyStatus(
targetId,
guild.guildId,
constant.GUILD_APPLY_STATUS_REJECT,
func (err error, lastInsertId int64, rowsAffected int64) {
cb(0, "")
})
}
func (this *guildMgr) AsyncLeave(string, string, func(int32, string)) {