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] }