Compare commits

...

3 Commits

Author SHA1 Message Date
mofangmin 2bbef647e9 防止循环绑定 1 year ago
mofangmin 532ee6a99b Merge branch 'release' into dev 1 year ago
mofangmin 094e436e70 jili2统计 1 year ago
  1. 3
      modules/web/handler/activity.go
  2. 4
      modules/web/handler/game.go
  3. 2
      modules/web/providers/jili2/handler.go

@ -782,7 +782,8 @@ func ActivityLuckyCodeDraw(c *gin.Context) {
// 判断是否为分享吗 // 判断是否为分享吗
upShareInfo := call.GetShareInfoByCode(req.LuckyCode) upShareInfo := call.GetShareInfoByCode(req.LuckyCode)
if upShareInfo.ID > 0 { if upShareInfo.ID > 0 {
if upShareInfo.UID == a.UID { // 防止循环绑定
if upShareInfo.UID == a.UID || a.UID == upShareInfo.UP1 || a.UID == upShareInfo.UP2 || a.UID == upShareInfo.UP3 {
a.Code = values.CodeRetry a.Code = values.CodeRetry
a.Msg = "code error" a.Msg = "code error"
return return

@ -111,6 +111,10 @@ func EnterGame(c *gin.Context) {
if game != nil && game.Open == 1 { if game != nil && game.Open == 1 {
req.Provider = providerId req.Provider = providerId
resp.Method = provider.Method resp.Method = provider.Method
} else {
a.Code = values.CodeParam
a.Msg = "Under Maintenance,please try later."
return
} }
} }

@ -122,7 +122,7 @@ func PlaceBet(c *gin.Context) {
TurnOver: int64(req.Bet * common.DecimalDigits), TurnOver: int64(req.Bet * common.DecimalDigits),
SettleAmount: int64(req.Award * common.DecimalDigits), SettleAmount: int64(req.Award * common.DecimalDigits),
SessionType: common.SessionTypeSettle, SessionType: common.SessionTypeSettle,
GameID: GetGameID(common.ProviderPG2, req.GameID), GameID: GetGameID(common.ProviderJiLi2, req.GameID),
GameName: req.GameID, GameName: req.GameID,
Provider: provider, Provider: provider,
BetID: req.BetID, BetID: req.BetID,

Loading…
Cancel
Save