1
This commit is contained in:
parent
d8bfbd5657
commit
6a8b21d857
14
server/imserver/cache/cachemgr.go
vendored
14
server/imserver/cache/cachemgr.go
vendored
@ -201,7 +201,19 @@ func (this *cacheMgr) AsyncRecommendList(recommendType int32, accountId string,
|
||||
),
|
||||
"ORDER BY last_battle_time DESC",
|
||||
func (err error, pg *f5.Pagination) {
|
||||
|
||||
if err != nil {
|
||||
cb(500, "server internal error")
|
||||
return
|
||||
}
|
||||
for pg.Rows.Next() {
|
||||
accountId1 := pg.Rows.GetByName("account_id1")
|
||||
accountId2 := pg.Rows.GetByName("account_id2")
|
||||
if accountId1 == accountId {
|
||||
outHums[accountId2] = 1
|
||||
} else {
|
||||
outHums[accountId1] = 1
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user