mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	#587 企业微信几个接口增加个人二维码字段
This commit is contained in:
		| @ -31,6 +31,7 @@ public class WxCpUser implements Serializable { | ||||
|   private Integer hideMobile; | ||||
|   private String englishName; | ||||
|   private String telephone; | ||||
|   private String qrCode; | ||||
|   private Boolean toInvite; | ||||
|  | ||||
|   public void addExtAttr(String name, String value) { | ||||
|  | ||||
| @ -19,6 +19,6 @@ public class WxCpUserDetail { | ||||
|   private String mobile; | ||||
|   private String gender; | ||||
|   private String email; | ||||
|   @SerializedName("qr_code") | ||||
|   @SerializedName("qrCode") | ||||
|   private String qrCode; | ||||
| } | ||||
|  | ||||
| @ -49,6 +49,7 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri | ||||
|     user.setHideMobile(GsonHelper.getInteger(o, "hide_mobile")); | ||||
|     user.setEnglishName(GsonHelper.getString(o, "english_name")); | ||||
|     user.setTelephone(GsonHelper.getString(o, "telephone")); | ||||
|     user.setQrCode(GsonHelper.getString(o, "qr_code")); | ||||
|     user.setToInvite(GsonHelper.getBoolean(o, "to_invite")); | ||||
|  | ||||
|     if (GsonHelper.isNotNull(o.get("extattr"))) { | ||||
| @ -113,6 +114,9 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri | ||||
|     if (user.getTelephone() != null) { | ||||
|       o.addProperty("telephone", user.getTelephone()); | ||||
|     } | ||||
|     if (user.getQrCode() != null) { | ||||
|       o.addProperty("qr_code", user.getQrCode()); | ||||
|     } | ||||
|     if (user.getToInvite() != null) { | ||||
|       o.addProperty("to_invite", user.getToInvite()); | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang