mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	#401 开放平台获取授权方的帐号基本信息返回对象增加MiniProgramInfo字段
This commit is contained in:
		| @ -1,5 +1,6 @@ | |||||||
| package me.chanjar.weixin.open.bean.auth; | package me.chanjar.weixin.open.bean.auth; | ||||||
|  |  | ||||||
|  | import com.google.gson.annotations.SerializedName; | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
|  |  | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
| @ -35,9 +36,10 @@ public class WxOpenAuthorizerInfo implements Serializable { | |||||||
|  |  | ||||||
|   @Data |   @Data | ||||||
|   public class MiniProgramInfo { |   public class MiniProgramInfo { | ||||||
|  |     @SerializedName("visit_status") | ||||||
|     private Integer visitStatus; |     private Integer visitStatus; | ||||||
|     /** |     /** | ||||||
|      * 小程序已设置的各个服务器域名 |      * 小程序已设置的各个服务器域名. | ||||||
|      */ |      */ | ||||||
|     private Network network; |     private Network network; | ||||||
|     private List<Category> categories; |     private List<Category> categories; | ||||||
| @ -50,10 +52,16 @@ public class WxOpenAuthorizerInfo implements Serializable { | |||||||
|  |  | ||||||
|     @Data |     @Data | ||||||
|     public class Network { |     public class Network { | ||||||
|  |       @SerializedName("RequestDomain") | ||||||
|       private List<String> requestDomain; |       private List<String> requestDomain; | ||||||
|  |       @SerializedName("WsRequestDomain") | ||||||
|       private List<String> wsRequestDomain; |       private List<String> wsRequestDomain; | ||||||
|  |       @SerializedName("UploadDomain") | ||||||
|       private List<String> uploadDomain; |       private List<String> uploadDomain; | ||||||
|  |       @SerializedName("DownloadDomain") | ||||||
|       private List<String> 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.lang.reflect.Type; | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
|  |  | ||||||
| import static me.chanjar.weixin.open.bean.auth.WxOpenAuthorizerInfo.*; |  | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * @author <a href="https://github.com/007gzs">007</a> |  * @author <a href="https://github.com/007gzs">007</a> | ||||||
|  */ |  */ | ||||||
| @ -36,7 +34,7 @@ public class WxOpenAuthorizerInfoGsonAdapter implements JsonDeserializer<WxOpenA | |||||||
|       }.getType()); |       }.getType()); | ||||||
|     authorizationInfo.setBusinessInfo(businessInfo); |     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>() { |       new TypeToken<WxOpenAuthorizerInfo.MiniProgramInfo>() { | ||||||
|       }.getType()); |       }.getType()); | ||||||
|     authorizationInfo.setMiniProgramInfo(miniProgramInfo); |     authorizationInfo.setMiniProgramInfo(miniProgramInfo); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang