You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
643 B
22 lines
643 B
package wechatopen
|
|
|
|
import "context"
|
|
|
|
// SetAuthorizerAccessToken 授权方access_token
|
|
func (c *Client) SetAuthorizerAccessToken(ctx context.Context, authorizerAccessToken string) string {
|
|
if authorizerAccessToken == "" {
|
|
return ""
|
|
}
|
|
c.config.authorizerAccessToken = authorizerAccessToken
|
|
return c.config.authorizerAccessToken
|
|
}
|
|
|
|
// SetAuthorizerRefreshToken 授权方refresh_token
|
|
func (c *Client) SetAuthorizerRefreshToken(ctx context.Context, authorizerRefreshToken string) string {
|
|
if authorizerRefreshToken == "" {
|
|
return ""
|
|
}
|
|
c.config.authorizerRefreshToken = authorizerRefreshToken
|
|
return c.config.authorizerRefreshToken
|
|
}
|