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) }