refactor: change alipay verify sign mode
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"crm/global"
|
||||
"log"
|
||||
|
||||
"github.com/go-pay/gopay"
|
||||
"github.com/go-pay/gopay/alipay"
|
||||
"github.com/go-pay/gopay/pkg/xlog"
|
||||
)
|
||||
@@ -17,8 +16,6 @@ func Alipay() {
|
||||
return
|
||||
}
|
||||
|
||||
client.DebugSwitch = gopay.DebugOn
|
||||
|
||||
// 设置支付宝请求、公钥证书模式
|
||||
client.SetReturnUrl(pay.ReturnURL).SetNotifyUrl(pay.NotifyURL)
|
||||
err = client.SetCertSnByPath(pay.AppPublicCert, pay.AlipayRootCert, pay.AlipayPublicCert)
|
||||
|
||||
Reference in New Issue
Block a user