This commit is contained in:
aozhiwei 2024-04-20 17:38:31 +08:00
parent b411e9d46a
commit 166ec772b0
2 changed files with 46 additions and 40 deletions

View File

@ -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 {

View File

@ -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},
@ -742,6 +743,11 @@ func (this *guildMgr) AsyncUpdateGuild(accountId string, kv map[int32]string, cb
}
})
}
if _, ok := kv[constant.GUILD_UPDATE_FIELD_NAME]; ok {
} else {
doFunc()
}
}
func (this *guildMgr) NotifyGuildMsg(guildId string, msg proto.Message) {
g := this.internalGetGuildByGuildId(guildId)