diff --git a/modules/pay/handler.go b/modules/pay/handler.go index 70d620c..85e4c6c 100644 --- a/modules/pay/handler.go +++ b/modules/pay/handler.go @@ -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) {