Merge branch 'dev_fi_xxx' into test
This commit is contained in:
commit
43570094e1
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue