1
This commit is contained in:
parent
b411e9d46a
commit
166ec772b0
@ -182,7 +182,7 @@ func (this *friendMgr) AsyncGetApplyList(lastIdx int64, accountId string,
|
||||
return
|
||||
}
|
||||
users := []string{}
|
||||
if pg.Rows.Next() {
|
||||
for pg.Rows.Next() {
|
||||
idx := q5.ToInt64(pg.Rows.GetByName("idx"))
|
||||
senderId := pg.Rows.GetByName("sender_id")
|
||||
if idx > lastSinceId {
|
||||
|
@ -697,6 +697,7 @@ func (this *guildMgr) AsyncUpdateGuild(accountId string, kv map[int32]string, cb
|
||||
this.addUsingName(name)
|
||||
guildName = name
|
||||
}
|
||||
doFunc := func () {
|
||||
f5.NewLockAsyncTask([][]string{
|
||||
{constant.GUILD_ID_LOCK_KEY, guild.guildId},
|
||||
{constant.GUILD_NAME_LOCK_KEY, guild.guildName},
|
||||
@ -741,6 +742,11 @@ func (this *guildMgr) AsyncUpdateGuild(accountId string, kv map[int32]string, cb
|
||||
this.removeUsingName(name)
|
||||
}
|
||||
})
|
||||
}
|
||||
if _, ok := kv[constant.GUILD_UPDATE_FIELD_NAME]; ok {
|
||||
} else {
|
||||
doFunc()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *guildMgr) NotifyGuildMsg(guildId string, msg proto.Message) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user