From 48fbf35fcb21e6a7c89aff321812936ad24c68e8 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Sat, 23 Nov 2024 11:48:58 +0800 Subject: [PATCH] update --- utils/es/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/es/base.go b/utils/es/base.go index 6b23e85..93c42d9 100644 --- a/utils/es/base.go +++ b/utils/es/base.go @@ -19,7 +19,7 @@ func GetAppointIndexFromAlias(year string, week string) string { func GetLatestEffectiveIndexFromAlias(now time.Time) string { var esIndexName string year, week := now.ISOWeek() - if now.Weekday() > time.Wednesday && now.Hour() > 14 { + if now.Weekday() > time.Wednesday || (now.Weekday() > time.Wednesday && now.Hour() > 14) { // 当前已经过了周三下午两点 返回当周蛋蛋分 esIndexName = md.EggEnergyUserEggScoreEsAlias + "_" + egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week) } else {