证书方式

This commit is contained in:
richboo111
2022-08-17 09:52:41 +08:00
parent cd69af4ac4
commit 68b6a7c745

View File

@@ -1,6 +1,8 @@
package alipayapi
import "git.rosy.net.cn/baseapi/utils"
import (
"git.rosy.net.cn/baseapi/utils"
)
const (
GrantTypeCode = "authorization_code"
@@ -41,7 +43,6 @@ func (a *API) SystemAuthToken(grantType, code, refreshToken string) (tokenInfo *
if refreshToken != "" {
params["refresh_token"] = refreshToken
}
// 获取证书
appCertSN, aliPayRootCertSN, aliPayPublicCertSN, err := SetCertSnByPath(appCertPath, aliPayRootCertPath, AliPayPublicCertPath)
if err != nil {