Ver código fonte

购物金

master
huangjiajun 2 meses atrás
pai
commit
8b98216c56
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      rule/service_award_dividend/return.go

+ 3
- 1
rule/service_award_dividend/return.go Ver arquivo

@@ -41,15 +41,17 @@ func GetCycle(eg *xorm.Engine) map[string]string {
}
last := postion - 1
next := postion
types := "now"
if postion-1 < 0 { //找出上一周期的时间
last = len(ex) - 1
} else if last == len(ex)-1 { //最后一个了
next = 0
types = "next"
}

lastDate := GetDate(now, ex[last], "last")
res["last"] = time.Unix(lastDate, 0).Format("20060102")
nowDate := GetDate(now, ex[next], "now")
nowDate := GetDate(now, ex[next], types)
res["now"] = time.Unix(nowDate, 0).Format("20060102")
}
}


Carregando…
Cancelar
Salvar