1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user