调整状态时长

dev_aagame_provider
zhora 1 month ago
parent 35db50f471
commit 755122a852
  1. 2
      modules/pay/handler.go

@ -39,7 +39,7 @@ func Recharge(req *pb.InnerRechargeReq) (ret []byte, err error) {
} }
for _, v := range call.GetConfigPayChannels() { for _, v := range call.GetConfigPayChannels() {
if req.Amount*common.DecimalDigits <= v.PayUp && req.Amount*common.DecimalDigits >= v.PayDown && v.CurrencyType == common.CurrencyINR { if req.Amount*common.DecimalDigits <= v.PayUp && req.Amount*common.DecimalDigits >= v.PayDown && v.CurrencyType == common.CurrencyINR {
if !db.Redis().Lock(common.GetRedisKeyUserPay(v.ChannelID, int(req.UID), int(req.Amount)), 2*time.Minute) { if !db.Redis().Lock(common.GetRedisKeyUserPay(v.ChannelID, int(req.UID), int(req.Amount)), 1*time.Minute) {
continue continue
} }
if weightChannel != uint32(v.ChannelID) { if weightChannel != uint32(v.ChannelID) {

Loading…
Cancel
Save