|
|
@@ -21,10 +21,10 @@ func GetLatestEffectiveIndexFromAlias(now time.Time) string { |
|
|
|
year, week := now.ISOWeek() |
|
|
|
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) |
|
|
|
esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week) |
|
|
|
} else { |
|
|
|
// 没过周三下午两点 返回上周蛋蛋分 |
|
|
|
esIndexName = md.EggEnergyUserEggScoreEsAlias + "_" + egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-1) |
|
|
|
esIndexName = egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week-1) |
|
|
|
} |
|
|
|
return esIndexName |
|
|
|
} |