瀏覽代碼

update

master
shenjiachi 1 天之前
父節點
當前提交
48fbf35fcb
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      utils/es/base.go

+ 1
- 1
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 {


Loading…
取消
儲存