diff --git a/rule/service_award_dividend/return.go b/rule/service_award_dividend/return.go index 7003021..7ad07a4 100644 --- a/rule/service_award_dividend/return.go +++ b/rule/service_award_dividend/return.go @@ -46,9 +46,9 @@ func GetCycle(eg *xorm.Engine) map[string]string { next = 0 } - lastDate := GetDate(now, zhios_order_relate_utils.IntToStr(last), "last") + lastDate := GetDate(now, ex[last], "last") res["last"] = time.Unix(lastDate, 0).Format("20060102") - nowDate := GetDate(now, zhios_order_relate_utils.IntToStr(next), "now") + nowDate := GetDate(now, ex[next], "now") res["now"] = time.Unix(nowDate, 0).Format("20060102") } }