From de5cb4ca5e43eadfb8ae288d54a43404bf2feb15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 30 Mar 2023 14:03:02 +0800 Subject: [PATCH] 1 --- platformapi/alipayapi/utils.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platformapi/alipayapi/utils.go b/platformapi/alipayapi/utils.go index 816ce68b..b632c7d6 100644 --- a/platformapi/alipayapi/utils.go +++ b/platformapi/alipayapi/utils.go @@ -47,14 +47,14 @@ func (a *API) SystemAuthToken(grantType, code, refreshToken string) (tokenInfo * params["refresh_token"] = refreshToken } // 获取证书 - appCertSN, aliPayRootCertSN, aliPayPublicCertSN, err := SetCertSnByPath(AppCertPath2, AliPayRootCertPath2, AliPayPublicCertPath2) - if err != nil { - return nil, err - } - - params["app_cert_sn"] = appCertSN - params["alipay_public_cert_sn"] = aliPayPublicCertSN - params["alipay_root_cert_sn"] = aliPayRootCertSN + //appCertSN, aliPayRootCertSN, aliPayPublicCertSN, err := SetCertSnByPath(AppCertPath2, AliPayRootCertPath2, AliPayPublicCertPath2) + //if err != nil { + // return nil, err + //} + // + //params["app_cert_sn"] = appCertSN + //params["alipay_public_cert_sn"] = aliPayPublicCertSN + //params["alipay_root_cert_sn"] = aliPayRootCertSN retVal, err := a.AccessAPI("alipay.system.oauth.token", params, nil, false) if err == nil {