mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	修复用户标签id类型不一致的问题 #175
This commit is contained in:
		| @ -32,7 +32,7 @@ public class WxMpUser implements Serializable { | ||||
|   private Integer sexId; | ||||
|   private String remark; | ||||
|   private Integer groupId; | ||||
|   private Integer[] tagIds; | ||||
|   private Long[] tagIds; | ||||
|  | ||||
|   public Boolean getSubscribe() { | ||||
|     return this.subscribe; | ||||
| @ -150,11 +150,11 @@ public class WxMpUser implements Serializable { | ||||
|     this.groupId = groupId; | ||||
|   } | ||||
|  | ||||
|   public Integer[] getTagIds() { | ||||
|   public Long[] getTagIds() { | ||||
|     return this.tagIds; | ||||
|   } | ||||
|  | ||||
|   public void setTagIds(Integer[] tagIds) { | ||||
|   public void setTagIds(Long[] tagIds) { | ||||
|     this.tagIds = tagIds; | ||||
|   } | ||||
|  | ||||
|  | ||||
| @ -36,7 +36,7 @@ public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> { | ||||
|     Integer sexId = GsonHelper.getInteger(o, "sex"); | ||||
|     wxMpUser.setRemark(GsonHelper.getString(o, "remark")); | ||||
|     wxMpUser.setGroupId(GsonHelper.getInteger(o, "groupid")); | ||||
|     wxMpUser.setTagIds(GsonHelper.getIntArray(o, "tagid_list")); | ||||
|     wxMpUser.setTagIds(GsonHelper.getLongArray(o, "tagid_list")); | ||||
|     wxMpUser.setSexId(sexId); | ||||
|     if (new Integer(1).equals(sexId)) { | ||||
|       wxMpUser.setSex("男"); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang