8000 准备发布新版本2.4.0 by binarywang · Pull Request #87 · binarywang/WxJava · GitHub
[go: up one dir, main page]

Skip to content

准备发布新版本2.4.0 #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Nov 30, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8dadf49
更改版本号为snapshot版本
binarywang Nov 1, 2016
fad9aba
将httpclient显式进行依赖,以便于客户端优先使用配置的版本
binarywang Nov 1, 2016
8c00299
同步更新gradle相关配置
binarywang Nov 1, 2016
3ed717a
Update README.md
binarywang Nov 4, 2016
6cf7b08
去掉模版消息里无用的topcolor参数
binarywang Nov 4, 2016
1bd4f68
完善模板消息发送的单元测试,加入颜色
binarywang Nov 4, 2016
f478ceb
按openid群发消息时提供setToUsers方法,方便客户端直接设置所有群发对象的openid列表
binarywang Nov 4, 2016
e3fd108
Update README.md
binarywang Nov 8, 2016
109cab8
Update README.md
binarywang Nov 8, 2016
e4df6c8
重构优化XStreamTransformer代码
binarywang Nov 9, 2016
a887198
补充public方法的注释
binarywang Nov 9, 2016
fce1c2f
Update README.md
binarywang Nov 10, 2016
6dccfc7
upgrade version for maven-compiler-plugin
binarywang Nov 14, 2016
44d6b95
Update README.md
binarywang Nov 14, 2016
86160ca
更新javadoc
binarywang Nov 16, 2016
efa59d5
Update README.md
binarywang Nov 16, 2016
c84767c
Update README.md
binarywang Nov 16, 2016
0b0fbcd
使用大写L代替小写l,以免容易误解
binarywang Nov 17, 2016
25c792b
补充完善部分缺失的javadoc
binarywang Nov 17, 2016
88f0eb8
Update README.md
binarywang Nov 17, 2016
6d01fa5
修改WxCpMessage中agentId的数据类型, String-> Integer
Nov 16, 2016
a37a869
Merge pull request #79 from withinthefog/agentid-fix
binarywang Nov 18, 2016
088a972
为WxMpConfigStorage接口增加autoRefreshToken方法,以方便客户端设置是否自动刷新token. for #77
binarywang Nov 18, 2016
e4d5545
reformat some code
binarywang Nov 21, 2016
72d6aad
修复 #80 menuCreate()方法代码的问题,and reformat code
binarywang Nov 21, 2016
b09c5ae
Merge pull request #1 from wechat-group/develop
ZhaoxiongTan Nov 21, 2016
5f20d2c
图文消息统计接口, statDate类型改为String
ZhaoxiongTan Nov 21, 2016
9eadcf5
Merge pull request #81 from ZhaoxiongTan/develop
binarywang Nov 21, 2016
0acde03
修改获取Token/Ticket时的同步机制,改由通过锁来进行同步,由WxMpConfigStorage来提供锁实现。
ericlogic Nov 21, 2016
6278161
Merge pull request #82 from iwareserictsai/develop
binarywang Nov 22, 2016
b3778d1
添加贡献者信息
binarywang Nov 22, 2016
077f39c
添加贡献者信息
binarywang Nov 22, 2016
33ef6eb
修复#82引入代码导致的单元测试失败的问题
binarywang Nov 22, 2016
a26715c
增加对微信硬件平台事件消息的支持
Nov 24, 2016
1bc2a5c
部分实现微信支付查询退款的接口 for #59
binarywang Nov 24, 2016
fd4505d
Merge pull request #83 from johnnytung/develop
binarywang Nov 25, 2016
95821da
实现获取自定义菜单配置的接口 for #70
binarywang Nov 25, 2016
33de0d8
添加贡献者信息
binarywang Nov 25, 2016
160f608
test enhancement for template message
binarywang Nov 28, 2016
5bb6a24
reformat code
binarywang Nov 28, 2016
9d06a69
增加查询红包记录的接口 for #73
binarywang Nov 28, 2016
baf92b6
完善注释
binarywang Nov 29, 2016
eb9c55d
修正部分接口的注释中文档链接地址为新的文档地址
binarywang Nov 29, 2016
ef15580
一些小的代码调整
binarywang Nov 29, 2016
23f344b
修正WxMpXmlMessage中,设备id的XStreamAlias为DeviceID
Nov 30, 2016
19dc664
Merge pull request #85 from johnnytung/develop
binarywang Nov 30, 2016
6ca78bb
升级版本为2.4.0
binarywang Nov 30, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
增加对微信硬件平台事件消息的支持
  • Loading branch information
dongfuqiang committed Nov 24, 2016
commit a26715cb4cd4f483c962e37b6963cb7d84886e22
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ public class WxConsts {
public static final String XML_MSG_LOCATION = "location";
public static final String XML_MSG_LINK = "link";
public static final String XML_MSG_EVENT = "event";
public static final String XML_MSG_DEVICE_TEXT = "device_text";
public static final String XML_MSG_DEVICE_EVENT = "device_event";
public static final String XML_MSG_DEVICE_STATUS = "device_status";
public static final String XML_MSG_HARDWARE = "hardware";
public static final String XML_TRANSFER_CUSTOMER_SERVICE = "transfer_customer_service";


///////////////////////
// 主动发送消息(即客服消息)的消息类型
///////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,81 @@ public class WxMpXmlMessage implements Serializable {
@XStreamAlias("FailReason")
private String failReason;


///////////////////////////////////////
// 微信硬件平台相关事件推送
///////////////////////////////////////
/**
* 设备类型,目前为"公众账号原始ID"
*/
@XStreamAlias("DeviceType")
@XStreamConverter(value = XStreamCDataConverter.class)
private String deviceType;

/**
* 设备ID,第三方提供
*/
@XStreamAlias("DeviceId")
@XStreamConverter(value = XStreamCDataConverter.class)
private String deviceId;


@XStreamAlias("HardWare")
private HardWare hardWare = new HardWare();

/**
* 请求类型:0:退订设备状态;1:心跳;(心跳的处理方式跟订阅一样)2:订阅设备状态
*/
@XStreamAlias("OpType")
private Integer opType;

/**
* 设备状态:0:未连接;1:已连接
*/
@XStreamAlias("DeviceStatus")
private Integer deviceStatus;

public Integer getOpType() {
return opType;
}

public void setOpType(Integer opType) {
this.opType = opType;
}

public Integer getDeviceStatus() {

return deviceStatus;
}

public void setDeviceStatus(Integer deviceStatus) {
this.deviceStatus = deviceStatus;
}

public HardWare getHardWare() {
return hardWare;
}

public void setHardWare(HardWare hardWare) {
this.hardWare = hardWare;
}

public String getDeviceType() {
return deviceType;
}

public void setDeviceType(String deviceType) {
this.deviceType = deviceType;
}

public String getDeviceId() {
return deviceId;
}

public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}

public Long getExpiredTime() {
return this.expiredTime;
}
Expand Down Expand Up @@ -346,7 +421,6 @@ public void setCreateTime(Long createTime) {
* {@link me.chanjar.weixin.com 103C9 mon.api.WxConsts#XML_MSG_LINK}
* {@link me.chanjar.weixin.common.api.WxConsts#XML_MSG_EVENT}
* </pre>
*
*/
public String getMsgType() {
return this.msgType;
Expand Down Expand Up @@ -555,17 +629,17 @@ public static WxMpXmlMessage fromXml(InputStream is) {
* @param msgSignature
*/
public static WxMpXmlMessage fromEncryptedXml(String encryptedXml,
WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce,
String msgSignature) {
WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce,
String msgSignature) {
WxMpCryptUtil cryptUtil = new WxMpCryptUtil(wxMpConfigStorage);
String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce,
encryptedXml);
return fromXml(plainText);
}

public static WxMpXmlMessage fromEncryptedXml(InputStream is,
WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce,
String msgSignature) {
WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce,
String msgSignature) {
try {
return fromEncryptedXml(IOUtils.toString(is, "UTF-8"), wxMpConfigStorage,
timestamp, nonce, msgSignature);
Expand Down Expand Up @@ -719,6 +793,44 @@ public void setFromKfAccount(String fromKfAccount) {
this.fromKfAccount = fromKfAccount;
}

@XStreamAlias("HardWare")
public static class HardWare {
@Override
public String toString() {
return ToStringUtils.toSimpleString(this);
}

/**
* 消息展示,目前支持myrank(排行榜)
*/
@XStreamAlias("MessageView")
@XStreamConverter(value = XStreamCDataConverter.class)
private String messageView;

/**
* 消息点击动作,目前支持ranklist(点击跳转排行榜)
*/
@XStreamAlias("MessageAction")
@XStreamConverter(value = XStreamCDataConverter.class)
private String messageAction;

public String getMessageView() {
return messageView;
}

public void setMessageView(String messageView) {
this.messageView = messageView;
}

public String getMessageAction() {
return messageAction;
}

public void setMessageAction(String messageAction) {
this.messageAction = messageAction;
}
}

@XStreamAlias("ScanCodeInfo")
public static class ScanCodeInfo {
@Override
Expand Down
0