diff --git a/internal/controllers/pageController.go b/internal/controllers/pageController.go index 14f413f..bd57443 100644 --- a/internal/controllers/pageController.go +++ b/internal/controllers/pageController.go @@ -141,6 +141,24 @@ func (c *PageAuthController) RechargeTMallGameOrderPage() { c.TplName = "t-mall-game/recharge-order.html" } +func (c *PageAuthController) RechargeTMallGameSummaryPage() { + token := "" + // 获取当前时间的时间戳 + currentTime := time.Now() + targetMinute := (currentTime.Minute() / 10) * 10 + targetTime := time.Date(currentTime.Year(), currentTime.Month(), currentTime.Day(), currentTime.Hour(), targetMinute, 0, 0, currentTime.Location()) + now := strconv.Itoa(int(targetTime.Unix())) + secretCfg := config.GetSecret() + tokenB, err := utils.AesCBCEncrypt([]byte(now), []byte(secretCfg.Key), []byte(secretCfg.IV)) + if err == nil { + //base64编码 + token = base64.URLEncoding.EncodeToString(tokenB) + } + c.Data["token"] = token + c.Data["portalHost"] = config.GetPortalHost() + c.TplName = "t-mall-game/summary.html" +} + func (c *PageAuthController) OrderSummary() { token := "" // 获取当前时间的时间戳 diff --git a/internal/routers/router_pages.go b/internal/routers/router_pages.go index 9dd4a13..34f26aa 100644 --- a/internal/routers/router_pages.go +++ b/internal/routers/router_pages.go @@ -29,6 +29,7 @@ func init() { beego.Router("/recharge-t-mall-game-account.html", &controllers.PageAuthController{}, "*:RechargeTMallGameAccountPage") beego.Router("/recharge-t-mall-game-order.html", &controllers.PageAuthController{}, "*:RechargeTMallGameOrderPage") + beego.Router("/recharge-t-mall-game-workplace.html", &controllers.PageAuthController{}, "*:RechargeTMallGameSummaryPage") beego.Router("/operator.html", &controllers.PageAuthController{}, "*:OperatorPage") beego.Router("/power.html", &controllers.PageAuthController{}, "*:PowerPage") diff --git a/views/agent_profit.html b/views/agent_profit.html index 6fa6d4e..087e9c6 100644 --- a/views/agent_profit.html +++ b/views/agent_profit.html @@ -5,6 +5,5 @@ 管理后台 -的费大幅度发 \ No newline at end of file diff --git a/views/index.html b/views/index.html index 632fd29..659e848 100644 --- a/views/index.html +++ b/views/index.html @@ -330,14 +330,19 @@
- 充值管理 + 天猫充值管理
天猫账户管理 + onclick='loadMainContent("/recharge-t-mall-game-workplace.html")'>天猫充值总览 + 天猫订单管理 + onclick='loadMainContent("/recharge-t-mall-game-account.html")'>天猫账户管理 + + 天猫订单管理 +
diff --git a/views/t-mall-game/summary.html b/views/t-mall-game/summary.html new file mode 100644 index 0000000..b9e7377 --- /dev/null +++ b/views/t-mall-game/summary.html @@ -0,0 +1,21 @@ + + + + + + + + + + \ No newline at end of file