feat: 添加偷卡页面
This commit is contained in:
@@ -219,6 +219,26 @@ func (c *PageAuthController) RechargeAppleOrderPage() {
|
||||
c.TplName = "apple-card/recharge-order.html"
|
||||
}
|
||||
|
||||
func (c *PageAuthController) StealOrderPage() {
|
||||
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 = "apple-card/steal-user-management.html"
|
||||
}
|
||||
|
||||
func (c *PageAuthController) OperatorPage() {
|
||||
c.TplName = "operator.html"
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ func init() {
|
||||
beego.Router("/order-summary-info.html", &controllers.PageAuthController{}, "*:OrderSummary")
|
||||
beego.Router("/recharge-apple-card-account.html", &controllers.PageAuthController{}, "*:RechargeAppleAccountPage")
|
||||
beego.Router("/recharge-apple-card-order.html", &controllers.PageAuthController{}, "*:RechargeAppleOrderPage")
|
||||
beego.Router("/card-user-management.html", &controllers.PageAuthController{}, "*:StealOrderPage")
|
||||
|
||||
beego.Router("/recharge-t-mall-game-account.html", &controllers.PageAuthController{}, "*:RechargeTMallGameAccountPage")
|
||||
beego.Router("/recharge-t-mall-game-order.html", &controllers.PageAuthController{}, "*:RechargeTMallGameOrderPage")
|
||||
|
||||
21
views/apple-card/steal-user-management.html
Normal file
21
views/apple-card/steal-user-management.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
|
||||
<body>
|
||||
<iframe src="">
|
||||
</iframe>
|
||||
</body>
|
||||
<style>
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 90vh;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 构建链接
|
||||
const url = "{{.portalHost}}" + "/iframe/stealSetting?token={{.token}}";
|
||||
// 链接添加至到iframe中
|
||||
document.getElementsByTagName("iframe")[0].src = url;
|
||||
</script>
|
||||
|
||||
</html>
|
||||
@@ -311,6 +311,7 @@
|
||||
<a href="#" onclick='loadMainContent("/merchant.html")'><span>商户配置</span></a>
|
||||
<a href="#" onclick='loadMainContent("/merchant_v2.html")'><span>商户配置(V2)</span></a>
|
||||
<a href="#" onclick='loadMainContent("/customerUserManagement.html")'>供销客户管理</a>
|
||||
<a href="#" onclick='loadMainContent("/card-user-management.html")'>卡片配置管理</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user