mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-24 18:04:38 +08:00
Merge pull request #118 from lijunkun1988/patch-1
支持微信接收硬件设备消息的OpenID字段
This commit is contained in:
commit
0e8df669eb
@ -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…
Reference in New Issue
Block a user