|
|
@@ -48,12 +48,12 @@ public class ComponentTokenApi {
|
|
|
* https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html
|
|
|
* 使用授权码获取授权信息
|
|
|
*/
|
|
|
- public static AuthorizationInfoResult queryAuth(String componentAppid, String componentAccessToken, String authorizationCode) {
|
|
|
+ public static AuthorizationInfo queryAuth(String componentAppid, String componentAccessToken, String authorizationCode) {
|
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("component_appid", componentAppid);
|
|
|
json.put("authorization_code", authorizationCode);
|
|
|
AuthorizationInfoResult rs = WxHttp.post(AuthorizationInfoResult.class,query_auth+componentAccessToken,json);
|
|
|
- return rs;
|
|
|
+ return rs.getAuthorization_info();
|
|
|
}
|
|
|
|
|
|
|