From 3e94fcfcc8db10677c1f3b927f2181e1760290f8 Mon Sep 17 00:00:00 2001 From: mofangmin Date: Tue, 20 Aug 2024 16:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/handler/activity.go | 1 + modules/web/middleware/token.go | 83 +++++++++++++++++---------------- modules/web/values/activity.go | 1 + 3 files changed, 44 insertions(+), 41 deletions(-) diff --git a/modules/web/handler/activity.go b/modules/web/handler/activity.go index f8638d4..413d0ec 100644 --- a/modules/web/handler/activity.go +++ b/modules/web/handler/activity.go @@ -676,6 +676,7 @@ func ActivityFirstRechargeBackInfo(c *gin.Context) { } resp.ProductList = call.GetConfigPayProductByActivityID(common.ActivityIDFirstRechargeBack) resp.Recharge = data.Amount + resp.BackPer = conf.MaxBack if data.Amount < conf.MinRecharge { return } diff --git a/modules/web/middleware/token.go b/modules/web/middleware/token.go index 120f9c1..0d3b105 100644 --- a/modules/web/middleware/token.go +++ b/modules/web/middleware/token.go @@ -15,47 +15,48 @@ import ( var ( passURLs = map[string]struct{}{ - "/firstpage": {}, - "/game/list": {}, - "/sys/config": {}, - "/account/email/code": {}, - "/account/email/regist": {}, - "/account/email/login": {}, - "/account/email/resetPass": {}, - "/account/guestLogin": {}, - "/account/gpLogin": {}, - "/account/fbLogin": {}, - "/account/tokenLogin": {}, - "/account/phoneCode/get": {}, - "/account/phoneCode/verify": {}, - "/account/phoneCode/regist": {}, - "/account/phoneCode/login": {}, - "/share/upload": {}, - "/share/config": {}, - "/game/enter": {}, - "/activity/appSpin/info": {}, - "/activity/pdd/info": {}, - "/account/phone/regist": {}, - "/account/phone/login": {}, - "/account/phone/resetPass": {}, - "/balance/recharge/info": {}, - "/share/info": {}, - "/vip/info": {}, - "/share/reference": {}, - "/share/report": {}, - "/share/transfer": {}, - "/task/info": {}, - "/activity/freeSpin/info": {}, - "/promotions": {}, - "/tg/luckyCode": {}, - "/activity/sign/info": {}, - "/ad/uploadFB": {}, - "/activity/slots/info": {}, - "/activity/sign/new/info": {}, - "/activity/betDraw/info": {}, - "/activity/betDraw/record": {}, - "/activity/activityPopup/info": {}, - "/customer/image/download": {}, + "/firstpage": {}, + "/game/list": {}, + "/sys/config": {}, + "/account/email/code": {}, + "/account/email/regist": {}, + "/account/email/login": {}, + "/account/email/resetPass": {}, + "/account/guestLogin": {}, + "/account/gpLogin": {}, + "/account/fbLogin": {}, + "/account/tokenLogin": {}, + "/account/phoneCode/get": {}, + "/account/phoneCode/verify": {}, + "/account/phoneCode/regist": {}, + "/account/phoneCode/login": {}, + "/share/upload": {}, + "/share/config": {}, + "/game/enter": {}, + "/activity/appSpin/info": {}, + "/activity/pdd/info": {}, + "/account/phone/regist": {}, + "/account/phone/login": {}, + "/account/phone/resetPass": {}, + "/balance/recharge/info": {}, + "/share/info": {}, + "/vip/info": {}, + "/share/reference": {}, + "/share/report": {}, + "/share/transfer": {}, + "/task/info": {}, + "/activity/freeSpin/info": {}, + "/promotions": {}, + "/tg/luckyCode": {}, + "/activity/sign/info": {}, + "/ad/uploadFB": {}, + "/activity/slots/info": {}, + "/activity/sign/new/info": {}, + "/activity/betDraw/info": {}, + "/activity/betDraw/record": {}, + "/activity/activityPopup/info": {}, + "/customer/image/download": {}, + "/activity/firstRechargeBack/info": {}, } ) diff --git a/modules/web/values/activity.go b/modules/web/values/activity.go index 63eb21e..671e94d 100644 --- a/modules/web/values/activity.go +++ b/modules/web/values/activity.go @@ -46,6 +46,7 @@ type ActivityFreeSpinDrawResp struct { type ActivityFirstRechargeBackInfoResp struct { Recharge int64 Back int64 + BackPer int64 CanRecharge bool DrawTime int64 // 领取时间 ProductList []*common.ConfigPayProduct