Browse Source

update

adv_callback
dengbiao 1 month ago
parent
commit
abb9f64965
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      app/hdl/hdl_home_page.go
  2. +1
    -1
      app/router/router.go

+ 1
- 3
app/hdl/hdl_home_page.go View File

@@ -79,7 +79,6 @@ func HomePage(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err.Error()) e.OutErr(c, e.ERR_DB_ORM, err.Error())
return return
} }
LeaveTimer := "0"
if has && utils.TimeParseStd(signIn.EndTime).After(now) { if has && utils.TimeParseStd(signIn.EndTime).After(now) {
//3.2.1 获取预估每秒获得蛋蛋能量数 //3.2.1 获取预估每秒获得蛋蛋能量数
estimatePerSecondPersonEggEnergyValue, err1 := decimal.NewFromString(signIn.EstimatePerSecondPersonEggEnergyValue) estimatePerSecondPersonEggEnergyValue, err1 := decimal.NewFromString(signIn.EstimatePerSecondPersonEggEnergyValue)
@@ -96,7 +95,6 @@ func HomePage(c *gin.Context) {
signTeamEggEnergy = estimatePerSecondTeamEggEnergyValue.String() signTeamEggEnergy = estimatePerSecondTeamEggEnergyValue.String()
isSign = true isSign = true
signCountdown = signIn.EndTime signCountdown = signIn.EndTime
LeaveTimer = utils.Int64ToStr(utils.TimeStdParseUnix(signIn.EndTime) - time.Now().Unix())
} }


// 3.3 查询个人及团队蛋蛋能量 // 3.3 查询个人及团队蛋蛋能量
@@ -167,7 +165,7 @@ func HomePage(c *gin.Context) {
})) }))


resp := md.HomePageResp{ resp := md.HomePageResp{
LeaveTimer: LeaveTimer,
LeaveTimer: utils.Int64ToStr(residueTimes),
IsSign: isSign, IsSign: isSign,
SignEndTime: signCountdown, SignEndTime: signCountdown,
TotalEggEnergy: utils.Float64ToStr(totalEggEnergy), TotalEggEnergy: utils.Float64ToStr(totalEggEnergy),


+ 1
- 1
app/router/router.go View File

@@ -98,7 +98,7 @@ func route(r *gin.RouterGroup) {
rHomePage.GET("/index", hdl.HomePage) // 主页 rHomePage.GET("/index", hdl.HomePage) // 主页
rHomePage.GET("/adRule", hdl.HomePageWatchAdRule) // 主页-可以观看广告规则 rHomePage.GET("/adRule", hdl.HomePageWatchAdRule) // 主页-可以观看广告规则
rHomePage.GET("/realTimePrice", hdl.RealTimePrice) // 主页-实时数据 rHomePage.GET("/realTimePrice", hdl.RealTimePrice) // 主页-实时数据
rHomePage.GET("/isCanSignIn", hdl.IsCanSignIn) // 主页-是否可以观看广告
rHomePage.GET("/isCanSignIn", hdl.IsCanSignIn) // 主页-是否可以签到
rHomePage.GET("/isCanGetRedPackage", hdl.IsCanGetRedPackage) // 主页-是否可以获得红包 rHomePage.GET("/isCanGetRedPackage", hdl.IsCanGetRedPackage) // 主页-是否可以获得红包
} }




Loading…
Cancel
Save