|
@@ -46,11 +46,11 @@ func (a *Advanced) WinnerOtherInfo(timeFrame string) (eri *entity.WinnerRecommen
|
|
|
eri.WinnerId = winner.WinnerId
|
|
|
}
|
|
|
if b := redis.Put(consts.RedisNewOther, winnerNameOtherKey, eri, consts.DetailCacheTime); !b {
|
|
|
- if eri.More {
|
|
|
- eri.List = eri.List[:count]
|
|
|
- }
|
|
|
log.Println("--winner- err -:", a.Id, winnerNameOtherKey)
|
|
|
}
|
|
|
+ if eri.More {
|
|
|
+ eri.List = eri.List[:count]
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
if bytes, err := redis.GetBytes(consts.RedisNewOther, winnerNameOtherKey); err == nil && bytes != nil {
|