mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-04 06:07:59 +08:00 
			
		
		
		
	🎨 #3562 【企业微信】发送应用消息接口返回增加unlicenseduser字段
This commit is contained in:
		@ -50,6 +50,9 @@ public class WxCpMessageSendResult implements Serializable {
 | 
				
			|||||||
  @SerializedName("invalidtag")
 | 
					  @SerializedName("invalidtag")
 | 
				
			||||||
  private String invalidTag;
 | 
					  private String invalidTag;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @SerializedName("unlicenseduser")
 | 
				
			||||||
 | 
					  private String unlicensedUser;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @SerializedName("msgid")
 | 
					  @SerializedName("msgid")
 | 
				
			||||||
  private String msgId;
 | 
					  private String msgId;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -93,4 +96,13 @@ public class WxCpMessageSendResult implements Serializable {
 | 
				
			|||||||
  public List<String> getInvalidTagList() {
 | 
					  public List<String> getInvalidTagList() {
 | 
				
			||||||
    return this.content2List(this.invalidTag);
 | 
					    return this.content2List(this.invalidTag);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /**
 | 
				
			||||||
 | 
					   * Gets unlicensed user list.
 | 
				
			||||||
 | 
					   *
 | 
				
			||||||
 | 
					   * @return the unlicensed user list
 | 
				
			||||||
 | 
					   */
 | 
				
			||||||
 | 
					  public List<String> getUnlicensedUserList() {
 | 
				
			||||||
 | 
					    return this.content2List(this.unlicensedUser);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -80,6 +80,7 @@ public class WxCpMessageServiceImplTest {
 | 
				
			|||||||
    System.out.println(messageSendResult.getInvalidPartyList());
 | 
					    System.out.println(messageSendResult.getInvalidPartyList());
 | 
				
			||||||
    System.out.println(messageSendResult.getInvalidUserList());
 | 
					    System.out.println(messageSendResult.getInvalidUserList());
 | 
				
			||||||
    System.out.println(messageSendResult.getInvalidTagList());
 | 
					    System.out.println(messageSendResult.getInvalidTagList());
 | 
				
			||||||
 | 
					    System.out.println(messageSendResult.getUnlicensedUserList());
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user