This commit is contained in:
aozhiwei 2024-04-15 20:34:14 +08:00
parent d8bfbd5657
commit 6a8b21d857

View File

@ -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
}
}
})
}
}