Explorar el Código

fix:其他中标动态数量处理

fuwencai hace 1 año
padre
commit
d2fe07de0a
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/jfw/modules/publicapply/src/detail/dao/winner.go

+ 3 - 3
src/jfw/modules/publicapply/src/detail/dao/winner.go

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