From a241f05370b533ee1854f6c59c586b7d3da5b87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Wed, 23 Oct 2024 15:45:51 +0800 Subject: [PATCH] change sdk --- alipay/utils/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alipay/utils/cert.go b/alipay/utils/cert.go index 2b6fe4d..279c7e9 100644 --- a/alipay/utils/cert.go +++ b/alipay/utils/cert.go @@ -43,7 +43,7 @@ func GetCert(mchCertPath, rootCertPath, PublicKeyPath, appId string) (*CertConfi } c := getCertConfig(appId) if c != nil { - return nil, fmt.Errorf("appId %s already exists", appId) + return c, nil } mchCertSN, err := getMchCertSN(mchCertPath) if err != nil {