|
@@ -18,6 +18,7 @@ public class WxAuth2Api {
|
|
|
private static String getUserUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?grant_type=authorization_code";
|
|
private static String getUserUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?grant_type=authorization_code";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Official_Accounts/official_account_website_authorization.html
|
|
|
* 开放平台认证
|
|
* 开放平台认证
|
|
|
* @param componentAppid 服务方的 appid,在申请创建公众号服务成功后,可在公众号服务详情页找到
|
|
* @param componentAppid 服务方的 appid,在申请创建公众号服务成功后,可在公众号服务详情页找到
|
|
|
* @param appId 众号的 appid
|
|
* @param appId 众号的 appid
|
|
@@ -36,6 +37,7 @@ public class WxAuth2Api {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Official_Accounts/official_account_website_authorization.html
|
|
|
* 通过 code 换取 access_token
|
|
* 通过 code 换取 access_token
|
|
|
* @param componentAppid 服务开发方的 appid
|
|
* @param componentAppid 服务开发方的 appid
|
|
|
* @param componentAccessToken 服务开发方的 access_token
|
|
* @param componentAccessToken 服务开发方的 access_token
|