|
@@ -92,7 +92,7 @@ func HomePage(c *gin.Context) { |
|
|
signCountdown = signIn.EndTime |
|
|
signCountdown = signIn.EndTime |
|
|
|
|
|
|
|
|
//3.2.2 计算预估获得的蛋蛋能量数 |
|
|
//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) |
|
|
estimatePersonEggEnergyValue = decimal.NewFromInt(estimateTimeSec).Mul(estimatePerSecondPersonEggEnergyValue) |
|
|
estimateTeamEggEnergyValue = decimal.NewFromInt(estimateTimeSec).Mul(estimatePerSecondTeamEggEnergyValue) |
|
|
estimateTeamEggEnergyValue = decimal.NewFromInt(estimateTimeSec).Mul(estimatePerSecondTeamEggEnergyValue) |
|
|
} |
|
|
} |
|
|