mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-05 21:27:47 +08:00
#401 开放平台获取授权方的帐号基本信息返回对象增加MiniProgramInfo字段
This commit is contained in:
parent
4a0f14debd
commit
42d5396e10
@ -1,5 +1,6 @@
|
||||
package me.chanjar.weixin.open.bean.auth;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@ -35,9 +36,10 @@ public class WxOpenAuthorizerInfo implements Serializable {
|
||||
|
||||
@Data
|
||||
public class MiniProgramInfo {
|
||||
@SerializedName("visit_status")
|
||||
private Integer visitStatus;
|
||||
/**
|
||||
* 小程序已设置的各个服务器域名
|
||||
* 小程序已设置的各个服务器域名.
|
||||
*/
|
||||
private Network network;
|
||||
private List<Category> categories;
|
||||
@ -50,10 +52,16 @@ public class WxOpenAuthorizerInfo implements Serializable {
|
||||
|
||||
@Data
|
||||
public class Network {
|
||||
@SerializedName("RequestDomain")
|
||||
private List<String> requestDomain;
|
||||
@SerializedName("WsRequestDomain")
|
||||
private List<String> wsRequestDomain;
|
||||
@SerializedName("UploadDomain")
|
||||
private List<String> uploadDomain;
|
||||
@SerializedName("DownloadDomain")
|
||||
private List<String> downloadDomain;
|
||||
@SerializedName("BizDomain")
|
||||
private List<String> bizDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user