From d896f9c5b062e4a0260f5a32c6aaf5122cca4e4a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 4 Apr 2024 22:01:07 +0800 Subject: [PATCH] 1 --- server/imserver_new/guild/guildmgr.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/imserver_new/guild/guildmgr.go b/server/imserver_new/guild/guildmgr.go index 10dfd6f0..e5956754 100644 --- a/server/imserver_new/guild/guildmgr.go +++ b/server/imserver_new/guild/guildmgr.go @@ -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)) {