1
This commit is contained in:
parent
9539086282
commit
e815b9a0cc
@ -71,7 +71,7 @@ func (this *guildMgr) loadGuildMember() {
|
|||||||
p := newMember()
|
p := newMember()
|
||||||
p.init(g.guildId, memberId, joinTime)
|
p.init(g.guildId, memberId, joinTime)
|
||||||
g.addMember(p)
|
g.addMember(p)
|
||||||
this.accountIdHash[guildId] = g
|
this.accountIdHash[memberId] = g
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
func (err error) {
|
func (err error) {
|
||||||
@ -207,6 +207,15 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, avatar int32, name stri
|
|||||||
this.idHash[guild.guildId] = guild
|
this.idHash[guild.guildId] = guild
|
||||||
this.nameHash[guild.guildName] = guild
|
this.nameHash[guild.guildName] = guild
|
||||||
this.accountIdHash[accountId] = 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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user