test aliapy whqm

This commit is contained in:
lwl0608 2024-12-19 11:39:53 +08:00
parent 20674e9435
commit 3e14bb14e9
1 changed files with 1 additions and 6 deletions

View File

@ -6,7 +6,6 @@ import (
"fmt"
"github.com/go-pay/gopay"
"github.com/go-pay/gopay/alipay"
"math/rand"
"net/http"
"service/bizcommon/util"
"service/library/configcenter"
@ -29,11 +28,7 @@ const (
var allAlipayClients = map[string]*AlipayClient{}
func GetDefaultAlipayClient() *AlipayClient {
rate := rand.Intn(100)
if rate < 75 {
return allAlipayClients[AppIdMiYuanTianShi]
}
return allAlipayClients[AppIdLanXing01]
return allAlipayClients[AppIdWanHuiQiMing]
}
func GetAlipayClientByAppId(appId string) *AlipayClient {