1
This commit is contained in:
@@ -2,6 +2,7 @@ package alipayapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -56,7 +57,9 @@ func (a *API) SystemAuthToken(grantType, code, refreshToken string) (tokenInfo *
|
||||
//params["alipay_public_cert_sn"] = aliPayPublicCertSN
|
||||
//params["alipay_root_cert_sn"] = aliPayRootCertSN
|
||||
|
||||
retVal, err := a.AccessAPI("alipay.system.oauth.token", params, nil, false)
|
||||
retVal, err := a.AccessAPI("alipay.system.oauth.token", nil, params, false)
|
||||
globals.SugarLogger.Debugf("==========aliPay := %s", utils.Format4Output(retVal, false))
|
||||
globals.SugarLogger.Debugf("==========err := %s", utils.Format4Output(err, false))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(retVal, &tokenInfo, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user