延迟发送app下载奖励

fix/release
mofangmin 1 year ago
parent 50e6714b3a
commit 195a5aff52
  1. 8
      modules/web/app/balance.go
  2. 5
      modules/web/handler/activity.go
  3. 10
      modules/web/handler/vip.go

@ -14,14 +14,14 @@ func (g *Gin) CheckWithdrawCondition(amount int64, t common.CurrencyType) (ok bo
down, up := call.GetConfigWithdrawLimits()
if amount < down || amount > up {
g.Code = values.CodeWithdrawCondition
g.Msg = fmt.Sprintf("दरज क गई रि R$ कच हिए %s और %s.", util.FormatNumberBrazil(float64(down)/common.DecimalDigits), util.FormatNumberBrazil(float64(up)/common.DecimalDigits))
g.Msg = fmt.Sprintf("The amount entered should be between $%s and %s.", util.FormatNumberBrazil(float64(down)/common.DecimalDigits), util.FormatNumberBrazil(float64(up)/common.DecimalDigits))
return
}
// 拉取当前所需下注
bet := call.GetUserNeedBet(g.UID)
if bet > 0 {
g.Code = values.CodeWithdrawConditionBet
g.Msg = "आपन अभ तक आवशयक दव प नहिए ह। नि करन पहल यह कििए।"
g.Msg = "You have not completed the required bets yet. Before making an extraction it should be done."
return
}
vip := call.GetVIP(g.UID)
@ -31,7 +31,7 @@ func (g *Gin) CheckWithdrawCondition(amount int64, t common.CurrencyType) (ok bo
limit = con.Exp / common.DecimalDigits
}
g.Code = values.CodeWithdrawConditionVip
g.Msg = fmt.Sprintf("अपरत वआईपतर आपकप-अप रि R( $ %d VIP1 बनन और अपनिलन सकषम हि.", limit)
g.Msg = fmt.Sprintf("Insufficient VIP levels your topup amount ($%d to become vip1 and be able to withdraw your money.", limit)
return
}
re := call.GetRechargeInfo(g.UID)
@ -43,7 +43,7 @@ func (g *Gin) CheckWithdrawCondition(amount int64, t common.CurrencyType) (ok bo
// if re.DayWithdraw+amount >= con.WithdrawLimit || re.WithdrawCount+1 >= con.WithdrawCount {
if re.WithdrawCount >= con.WithdrawCount {
g.Code = values.CodeWithdrawLimit
g.Msg = "ि आज तक पहच गई ह"
g.Msg = "Clearance count has reached today!"
return
}

@ -71,7 +71,10 @@ func GetUserTaskStatus(a *app.Gin) (ret []*values.OneTask) {
if a.DeviceType == common.DeviceTypeWebview || a.DeviceType == common.DeviceTypePWA {
taskId := call.CheckTask(call.Task{Uid: a.UID, Value: 0, Types: []common.TaskType{common.TaskTypeDownload}})
// 直接领取下载奖励
TaskComplete(a, &DrawTaskReq{TaskID: taskId})
util.Go(func() {
time.Sleep(time.Second * 3)
TaskComplete(a, &DrawTaskReq{TaskID: taskId})
})
a.Code = values.CodeOK
a.Msg = ""
}

@ -166,7 +166,7 @@ func DrawVipBonus(c *gin.Context) {
bonus := con.Bonus
if bonus <= 0 {
a.Code = values.CodeParam
a.Msg = "इनम अम"
a.Msg = "Reward invalid"
return
}
newDraws := vip.Draws | flag
@ -219,7 +219,7 @@ func DrawVipCashback(c *gin.Context) {
db.Mysql().UpdateResW(&common.VipData{}, map[string]interface{}{"profit_time": now.Unix(), "cashback": 0, "profit": 0},
fmt.Sprintf("uid = %v and profit_time = %v", a.UID, vip.ProfitTime))
a.Code = values.CodeParam
a.Msg = "इनम अम"
a.Msg = "Reward invalid"
return
} else {
cashback = vip.Profit * con.Cashback / 1000
@ -234,7 +234,7 @@ func DrawVipCashback(c *gin.Context) {
db.Mysql().UpdateResW(&common.VipData{}, map[string]interface{}{"profit_time": now.Unix(), "cashback": 0, "profit": 0},
fmt.Sprintf("uid = %v and profit_time = %v", a.UID, vip.ProfitTime))
a.Code = values.CodeParam
a.Msg = "इनम अम"
a.Msg = "Reward invalid"
return
} else {
cashback = vip.Profit * con.Cashback / 1000
@ -246,7 +246,7 @@ func DrawVipCashback(c *gin.Context) {
if cashback <= 0 {
a.Code = values.CodeParam
a.Msg = "इनम अम"
a.Msg = "Reward invalid"
return
}
@ -259,7 +259,7 @@ func DrawVipCashback(c *gin.Context) {
if err != nil || rows == 0 {
log.Error("err:%v", err)
a.Code = values.CodeParam
a.Msg = "इनम अम"
a.Msg = "Reward invalid"
return
}
_, err = call.UpdateCurrencyPro(&common.UpdateCurrency{

Loading…
Cancel
Save