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 {