From 438c47e3e08a70dfaaeb9ff98736e89a3033b7d3 Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Fri, 8 Nov 2024 17:07:55 +0800 Subject: [PATCH] lanxing 02 --- library/payclients/alipaycli/client.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/payclients/alipaycli/client.go b/library/payclients/alipaycli/client.go index 29d85df7..208f1013 100644 --- a/library/payclients/alipaycli/client.go +++ b/library/payclients/alipaycli/client.go @@ -6,6 +6,7 @@ import ( "fmt" "github.com/go-pay/gopay" "github.com/go-pay/gopay/alipay" + "math/rand" "net/http" "service/bizcommon/util" "service/library/configcenter" @@ -27,10 +28,10 @@ const ( var allAlipayClients = map[string]*AlipayClient{} func GetDefaultAlipayClient() *AlipayClient { - //rate := rand.Intn(100) - //if rate < 75 { - // return allAlipayClients[AppIdMiYuanTianShi] - //} + rate := rand.Intn(100) + if rate < 10 { + return allAlipayClients[AppIdLanXing02] + } return allAlipayClients[AppIdLanXing01] }