证书方式

This commit is contained in:
richboo111
2022-08-17 10:58:20 +08:00
parent c784f9fbad
commit 3f4600c238

View File

@@ -44,7 +44,7 @@ func (a *API) SystemAuthToken(grantType, code, refreshToken string) (tokenInfo *
params["refresh_token"] = refreshToken
}
// 获取证书
appCertSN, aliPayRootCertSN, aliPayPublicCertSN, err := SetCertSnByPath("./config/appCertPublicKey_2019110769024042.crt", "./config/alipayRootCert.crt", "./config/alipayCertPublicKey_RSA2.crt")
appCertSN, aliPayRootCertSN, aliPayPublicCertSN, err := SetCertSnByPath(AppCertPath, AliPayRootCertPath, AliPayPublicCertPath)
if err != nil {
return nil, err
}