Przeglądaj źródła

Merge branch 'hotfix/v4.9.6.1_ws' of qmx/jy into hotfix/v4.9.6.1

fuwencai 1 rok temu
rodzic
commit
8ddb0fa729

+ 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
 			eri.WinnerId = winner.WinnerId
 		}
 		}
 		if b := redis.Put(consts.RedisNewOther, winnerNameOtherKey, eri, consts.DetailCacheTime); !b {
 		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)
 			log.Println("--winner- err -:", a.Id, winnerNameOtherKey)
 		}
 		}
+		if eri.More {
+			eri.List = eri.List[:count]
+		}
 		return
 		return
 	}
 	}
 	if bytes, err := redis.GetBytes(consts.RedisNewOther, winnerNameOtherKey); err == nil && bytes != nil {
 	if bytes, err := redis.GetBytes(consts.RedisNewOther, winnerNameOtherKey); err == nil && bytes != nil {