diff --git a/server/imserver_new/guild/guildmgr.go b/server/imserver_new/guild/guildmgr.go index 81ffe524..8a4bcb87 100644 --- a/server/imserver_new/guild/guildmgr.go +++ b/server/imserver_new/guild/guildmgr.go @@ -57,6 +57,11 @@ func (this *guildMgr) AsyncCreateGuild(string, string, func(int32, string, int64 func (this *guildMgr) AsyncGetApplyList(lastIdx int64, accountId string, cb func(int32, string, int64, []string)) { + guild := this.GetGuildByAccountId(accountId) + if guild != nil { + cb(0, "", 0, nil) + return + } f5.GetJsStyleDb().PageQuery( constant.FRIEND_DB, 50, @@ -65,6 +70,7 @@ func (this *guildMgr) AsyncGetApplyList(lastIdx int64, accountId string, []string{}, f5.GetDbFilter().Comp( f5.GetDbFilter().GT("idx", q5.ToString(lastIdx)).And(), + f5.GetDbFilter().EQ("guild_id", guild.GetGuildId()).And(), f5.GetDbFilter().EQ("account_id", accountId).And(), f5.GetDbFilter().EQ("status", "0"), ),