Browse Source

获取openid

xujunwei 2 years ago
parent
commit
70baf1c88c

+ 2 - 0
framework-common/src/main/java/com/mrxu/framework/common/weixin/api/WxAuth2Api.java

@@ -18,6 +18,7 @@ public class WxAuth2Api {
     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 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
      * @param componentAppid 服务开发方的 appid
      * @param componentAccessToken 服务开发方的 access_token