Merge branch 'dev_fi_xxx' into test

This commit is contained in:
lwl0608 2024-11-08 17:08:02 +08:00
commit 43570094e1
1 changed files with 5 additions and 4 deletions

View File

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