diff --git a/modules/web/app/balance.go b/modules/web/app/balance.go index 7ed6e7c..05d8b73 100644 --- a/modules/web/app/balance.go +++ b/modules/web/app/balance.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 } diff --git a/modules/web/handler/activity.go b/modules/web/handler/activity.go index 8770cb4..e2e0226 100644 --- a/modules/web/handler/activity.go +++ b/modules/web/handler/activity.go @@ -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 = "" } diff --git a/modules/web/handler/vip.go b/modules/web/handler/vip.go index 6676996..4eefb38 100644 --- a/modules/web/handler/vip.go +++ b/modules/web/handler/vip.go @@ -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{