public class WxOpenMpOAuth2ServiceImpl extends WxOAuth2ServiceDecorator
构造器和说明 |
---|
WxOpenMpOAuth2ServiceImpl(WxOpenComponentService wxOpenComponentService,
WxOAuth2Service wxOAuth2Service,
WxMpConfigStorage wxMpConfigStorage) |
限定符和类型 | 方法和说明 |
---|---|
String |
buildAuthorizationUrl(String redirectUri,
String scope,
String state) |
WxOAuth2AccessToken |
getAccessToken(String code)
第三方平台代公众号发起网页授权
文档地址:第三方平台代公众号发起网页授权
|
getAccessToken, getUserInfo, refreshAccessToken, validateAccessToken
public WxOpenMpOAuth2ServiceImpl(WxOpenComponentService wxOpenComponentService, WxOAuth2Service wxOAuth2Service, WxMpConfigStorage wxMpConfigStorage)
public WxOAuth2AccessToken getAccessToken(String code) throws WxErrorException
getAccessToken
在接口中 WxOAuth2Service
getAccessToken
在类中 WxOAuth2ServiceDecorator
code
- 微信授权codeWxErrorException
- 如果微信接口调用失败将抛出此异常public String buildAuthorizationUrl(String redirectUri, String scope, String state)
buildAuthorizationUrl
在接口中 WxOAuth2Service
buildAuthorizationUrl
在类中 WxOAuth2ServiceDecorator
Copyright © 2024. All rights reserved.