This commit is contained in:
邹宗楠
2023-03-31 11:44:42 +08:00
parent 6301157379
commit abb328f62b
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
package alipayapi
import "git.rosy.net.cn/baseapi/utils"
import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
)
const (
GrantTypeCode = "authorization_code"
@@ -52,6 +55,8 @@ func (a *API) SystemAuthToken(grantType, code, refreshToken string) (tokenInfo *
params["alipay_root_cert_sn"] = aliPayRootCertSN
retVal, err := a.AccessAPI("alipay.system.oauth.token", params, nil, false)
globals.SugarLogger.Debugf("======retVal := %v", retVal)
globals.SugarLogger.Debugf("======err := %v", err)
if err == nil {
err = utils.Map2StructByJson(retVal, &tokenInfo, false)
}