From 834a6d83e0129480203b69040a9666f18081de5e Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 12 Dec 2024 22:01:13 +0800 Subject: [PATCH] update --- app/hdl/hdl_home_page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hdl/hdl_home_page.go b/app/hdl/hdl_home_page.go index efb4db3..569bb05 100644 --- a/app/hdl/hdl_home_page.go +++ b/app/hdl/hdl_home_page.go @@ -92,7 +92,7 @@ func HomePage(c *gin.Context) { signCountdown = signIn.EndTime //3.2.2 计算预估获得的蛋蛋能量数 - estimateTimeSec := utils.TimeParseStd(signIn.EndTime).Unix() - utils.TimeParseStd(signIn.StartTime).Unix() + estimateTimeSec := now.Unix() - utils.TimeParseStd(signIn.StartTime).Unix() estimatePersonEggEnergyValue = decimal.NewFromInt(estimateTimeSec).Mul(estimatePerSecondPersonEggEnergyValue) estimateTeamEggEnergyValue = decimal.NewFromInt(estimateTimeSec).Mul(estimatePerSecondTeamEggEnergyValue) }