|
@@ -2,10 +2,7 @@ package com.mrxu.framework.common.weixin.api;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.mrxu.framework.common.weixin.base.WxHttp;
|
|
import com.mrxu.framework.common.weixin.base.WxHttp;
|
|
|
-import com.mrxu.framework.common.weixin.bean.AuthorizationInfo;
|
|
|
|
|
-import com.mrxu.framework.common.weixin.bean.AuthorizerToken;
|
|
|
|
|
-import com.mrxu.framework.common.weixin.bean.ComponentToken;
|
|
|
|
|
-import com.mrxu.framework.common.weixin.bean.Preauthcode;
|
|
|
|
|
|
|
+import com.mrxu.framework.common.weixin.bean.*;
|
|
|
|
|
|
|
|
public class ComponentTokenApi {
|
|
public class ComponentTokenApi {
|
|
|
|
|
|
|
@@ -51,11 +48,11 @@ public class ComponentTokenApi {
|
|
|
* https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html
|
|
* https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html
|
|
|
* 使用授权码获取授权信息
|
|
* 使用授权码获取授权信息
|
|
|
*/
|
|
*/
|
|
|
- public static AuthorizationInfo queryAuth(String componentAppid, String componentAccessToken, String authorizationCode) {
|
|
|
|
|
|
|
+ public static AuthorizationInfoResult queryAuth(String componentAppid, String componentAccessToken, String authorizationCode) {
|
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
|
json.put("component_appid", componentAppid);
|
|
json.put("component_appid", componentAppid);
|
|
|
json.put("authorization_code", authorizationCode);
|
|
json.put("authorization_code", authorizationCode);
|
|
|
- AuthorizationInfo rs = WxHttp.post(AuthorizationInfo.class,query_auth+componentAccessToken,json);
|
|
|
|
|
|
|
+ AuthorizationInfoResult rs = WxHttp.post(AuthorizationInfoResult.class,query_auth+componentAccessToken,json);
|
|
|
return rs;
|
|
return rs;
|
|
|
}
|
|
}
|
|
|
|
|
|