Browse Source

update

master
dengbiao 6 days ago
parent
commit
c1b59fa58e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      utils/es/base.go

+ 2
- 2
utils/es/base.go View File

@@ -21,10 +21,10 @@ func GetLatestEffectiveIndexFromAlias(now time.Time) string {
//if now.Weekday() > time.Wednesday || (now.Weekday() > time.Wednesday && now.Hour() > 14) {
if now.Weekday() > time.Friday || (now.Weekday() > time.Friday && now.Hour() > 14) {
// 当前已经过了周三下午两点 返回上周蛋蛋分
now = now.AddDate(0, 0, -7*2)
now = now.AddDate(0, 0, -7*1)
} else {
// 没过周三下午两点 返回上上周蛋蛋分
now = now.AddDate(0, 0, -7*1)
now = now.AddDate(0, 0, -7*2)
}
year, week := now.ISOWeek()
return egg_system_rules.IntToStr(year) + egg_system_rules.IntToStr(week)


Loading…
Cancel
Save