This commit is contained in:
aozhiwei 2024-04-04 12:41:32 +08:00
parent 9539086282
commit e815b9a0cc

View File

@ -71,7 +71,7 @@ func (this *guildMgr) loadGuildMember() {
p := newMember()
p.init(g.guildId, memberId, joinTime)
g.addMember(p)
this.accountIdHash[guildId] = g
this.accountIdHash[memberId] = g
}
},
func (err error) {
@ -207,6 +207,15 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, avatar int32, name stri
this.idHash[guild.guildId] = guild
this.nameHash[guild.guildName] = guild
this.accountIdHash[accountId] = guild
oldGuild := this.internalGetGuildByAccountId(accountId)
if oldGuild != nil {
} else {
m := newMember()
m.init(guildId, accountId, q5.ToInt32(nowTime))
guild.addMember(m)
this.accountIdHash[accountId] = guild
}
})
})
}