|
|
@@ -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) |
|
|
|