|
|
|
|
@ -39,7 +39,7 @@ func Recharge(req *pb.InnerRechargeReq) (ret []byte, err error) { |
|
|
|
|
} |
|
|
|
|
for _, v := range call.GetConfigPayChannels() { |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
if weightChannel != uint32(v.ChannelID) { |
|
|
|
|
|