From 05c0fe4bb05872654794bf02c602f5cf24690fb4 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 19 Jan 2024 16:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hdl/hdl_upgrade.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hdl/hdl_upgrade.go b/hdl/hdl_upgrade.go index f5adc36..a93e9f7 100644 --- a/hdl/hdl_upgrade.go +++ b/hdl/hdl_upgrade.go @@ -377,8 +377,12 @@ func GetFinishCount(params map[string]string, blockStarChain string, engine *xor if lvTime != nil && lvTime.Date.IsZero() == false { stime = lvTime.Date.Format("2006-01-02") } + etime := t.Format("2006-01-02") if params["is_view"] == "1" { + if lvTime == nil || (lvTime != nil && lvTime.Date.IsZero()) { + stime = t.Format("2006-01-02") + } etime = time.Date(t.Year(), t.Month(), t.Day()+1, 0, 0, 0, 0, t.Location()).Format("2006-01-02") } _, days, activity := one_circles.CalcUserContinuousDailyActivityDays(engine, dbName, int(zhios_condition_statistics_utils.AnyToInt64(uid)), stime, etime)