From a260007246d4e5d8d478d9f747c2c6b1d9504287 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 26 Dec 2024 00:31:06 +0800 Subject: [PATCH] update --- utils/es/base.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/es/base.go b/utils/es/base.go index 47ac087..0efc29e 100644 --- a/utils/es/base.go +++ b/utils/es/base.go @@ -16,15 +16,16 @@ func GetAppointIndexFromAlias(year string, week string) string { } // GetLatestEffectiveIndexFromAlias 获取最新有效别名 +// TODO::临时默认全是60分 func GetLatestEffectiveIndexFromAlias(now time.Time) string { var esIndexName string year, week := now.ISOWeek() if now.Weekday() > time.Wednesday || (now.Weekday() > time.Wednesday && now.Hour() > 14) { // 当前已经过了周三下午两点 返回上周蛋蛋分 - esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-1) + esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-10) } else { // 没过周三下午两点 返回上上周蛋蛋分 - esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-2) + esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-20) } return esIndexName }