소스 검색

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

fuwencai 1 년 전
부모
커밋
d2fe07de0a
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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 {