Browse Source

支持微信接收硬件设备消息的OpenID字段

参考 http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-1
master
jkli 8 years ago
parent
commit
13136589db
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java

+ 14
- 0
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/WxMpXmlMessage.java View File

@@ -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;
}


Loading…
Cancel
Save