|
|
|
|
@ -1096,7 +1096,7 @@ func ActivitySignNewDraw(c *gin.Context) { |
|
|
|
|
if util.IsSameDayTimeStamp(now.Unix(), data.SignTime) { |
|
|
|
|
// 已经签到
|
|
|
|
|
a.Code = values.CodeParam |
|
|
|
|
a.Msg = "Check-in repetido." |
|
|
|
|
a.Msg = "आज में हस्ताक्षर किए" |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1174,7 +1174,6 @@ func ActivityBreakGiftInfo(c *gin.Context) { |
|
|
|
|
if call.GetUserCurrency(a.UID, common.CurrencyINR) > limit { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
payData := call.GetPlayerPayData(a.UID) |
|
|
|
|
re := call.GetRechargeInfo(a.UID) |
|
|
|
|
con := call.GetConfigActivityBreakGiftByRecharge(re.TotalRecharge, payData) |
|
|
|
|
@ -1182,7 +1181,6 @@ func ActivityBreakGiftInfo(c *gin.Context) { |
|
|
|
|
if con == nil { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if util.SliceContain(payData.SubBreakGift, con.Level) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
@ -1759,9 +1757,11 @@ func ActivityBetDrawInfo(c *gin.Context) { |
|
|
|
|
} |
|
|
|
|
a.GetUID() |
|
|
|
|
drawInfo := &common.ActivityBetDrawData{UID: a.UID} |
|
|
|
|
db.Mysql().Get(drawInfo) |
|
|
|
|
if drawInfo.ID == 0 { |
|
|
|
|
db.Mysql().Create(drawInfo) |
|
|
|
|
if a.UID > 0 { |
|
|
|
|
db.Mysql().Get(drawInfo) |
|
|
|
|
if drawInfo.ID == 0 { |
|
|
|
|
db.Mysql().Create(drawInfo) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
a.Data = &values.ActivityBetDrawInfoResp{ |
|
|
|
|
List: call.GetConfigBetDraw(), |
|
|
|
|
|