mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
#401 开放平台获取授权方的帐号基本信息返回对象增加MiniProgramInfo字段
This commit is contained in:
@@ -8,8 +8,6 @@ import me.chanjar.weixin.open.bean.auth.WxOpenAuthorizerInfo;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Map;
|
||||
|
||||
import static me.chanjar.weixin.open.bean.auth.WxOpenAuthorizerInfo.*;
|
||||
|
||||
/**
|
||||
* @author <a href="https://github.com/007gzs">007</a>
|
||||
*/
|
||||
@@ -36,7 +34,7 @@ public class WxOpenAuthorizerInfoGsonAdapter implements JsonDeserializer<WxOpenA
|
||||
}.getType());
|
||||
authorizationInfo.setBusinessInfo(businessInfo);
|
||||
|
||||
WxOpenAuthorizerInfo.MiniProgramInfo miniProgramInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get("miniProgramInfo"),
|
||||
WxOpenAuthorizerInfo.MiniProgramInfo miniProgramInfo = WxOpenGsonBuilder.create().fromJson(jsonObject.get("MiniProgramInfo"),
|
||||
new TypeToken<WxOpenAuthorizerInfo.MiniProgramInfo>() {
|
||||
}.getType());
|
||||
authorizationInfo.setMiniProgramInfo(miniProgramInfo);
|
||||
|
||||
Reference in New Issue
Block a user