|
|
@@ -298,7 +298,7 @@ func verifyAliPaySign(signData, sign, signType, aliPayPublicKey string) (err err
|
|
|
// grantType:值为 authorization_code 时,代表用code换取;值为 refresh_token 时,代表用refresh_token换取,传空默认code换取
|
|
|
// codeOrToken:支付宝授权码或refresh_token
|
|
|
// 文档:https://docs.open.alipay.com/api_9/alipay.system.oauth.token
|
|
|
-func AlipaySystemOauthToken(appId, privateKey, grantType, codeOrToken string) (rsp *AliPaySystemOauthTokenResponse, err error) {
|
|
|
+func AliPaySystemOauthToken(appId, privateKey, grantType, codeOrToken string) (rsp *AliPaySystemOauthTokenResponse, err error) {
|
|
|
var bs []byte
|
|
|
body := make(BodyMap)
|
|
|
if "authorization_code" == grantType {
|