mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-04 06:07:59 +08:00 
			
		
		
		
	Merge pull request #118 from lijunkun1988/patch-1
支持微信接收硬件设备消息的OpenID字段
This commit is contained in:
		@ -281,6 +281,12 @@ public class WxMpXmlMessage implements Serializable {
 | 
			
		||||
  @XStreamConverter(value = XStreamCDataConverter.class)
 | 
			
		||||
  private String deviceId;
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * 微信用户账号的OpenID
 | 
			
		||||
   */
 | 
			
		||||
  @XStreamAlias("OpenID")
 | 
			
		||||
  @XStreamConverter(value = XStreamCDataConverter.class)
 | 
			
		||||
  private String openId;
 | 
			
		||||
 | 
			
		||||
  @XStreamAlias("HardWare")
 | 
			
		||||
  private HardWare hardWare = new HardWare();
 | 
			
		||||
@ -375,6 +381,14 @@ public class WxMpXmlMessage implements Serializable {
 | 
			
		||||
    this.deviceId = deviceId;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public String getOpenId() {
 | 
			
		||||
    return openId;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public void setOpenId(String openId) {
 | 
			
		||||
    this.openId = openId;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public Long getExpiredTime() {
 | 
			
		||||
    return this.expiredTime;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user