|
|
@@ -79,7 +79,6 @@ func HomePage(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
LeaveTimer := "0" |
|
|
|
if has && utils.TimeParseStd(signIn.EndTime).After(now) { |
|
|
|
//3.2.1 获取预估每秒获得蛋蛋能量数 |
|
|
|
estimatePerSecondPersonEggEnergyValue, err1 := decimal.NewFromString(signIn.EstimatePerSecondPersonEggEnergyValue) |
|
|
@@ -96,7 +95,6 @@ func HomePage(c *gin.Context) { |
|
|
|
signTeamEggEnergy = estimatePerSecondTeamEggEnergyValue.String() |
|
|
|
isSign = true |
|
|
|
signCountdown = signIn.EndTime |
|
|
|
LeaveTimer = utils.Int64ToStr(utils.TimeStdParseUnix(signIn.EndTime) - time.Now().Unix()) |
|
|
|
} |
|
|
|
|
|
|
|
// 3.3 查询个人及团队蛋蛋能量 |
|
|
@@ -167,7 +165,7 @@ func HomePage(c *gin.Context) { |
|
|
|
})) |
|
|
|
|
|
|
|
resp := md.HomePageResp{ |
|
|
|
LeaveTimer: LeaveTimer, |
|
|
|
LeaveTimer: utils.Int64ToStr(residueTimes), |
|
|
|
IsSign: isSign, |
|
|
|
SignEndTime: signCountdown, |
|
|
|
TotalEggEnergy: utils.Float64ToStr(totalEggEnergy), |
|
|
|