weixin4j-[mp|qy] upgrade to 1.5.3

This commit is contained in:
jinyu
2015-08-13 12:07:40 +08:00
parent 5fe1c8edca
commit 461c0a9c5b
12 changed files with 72 additions and 17 deletions
+5 -1
View File
@@ -98,4 +98,8 @@
* 2015-08-10
+ 新增了会话API测试类
+ 新增了会话API测试类
* 2015-08-13
+ version upgrade to 1.5.3
+3 -3
View File
@@ -37,12 +37,12 @@ weixin4j-qy
如何使用
--------
0.maven依赖(1.5.2,2015-08-09 released)
0.maven依赖(1.5.3,2015-08-13 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
</dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`
@@ -76,7 +76,7 @@ weixin4j.properties说明
#企业号第三方应用套件授权后重定向的url(使用OauthApi时需要填写)
suite_oauth_redirect_uri=http://xxx
2.实例化微信企业号接口实现对象,调用具体的API方法
2.实例化微信企业号接口代理对象,调用具体的API方法
// 微信企业号API
WeixinProxy weixinProxy = new WeixinProxy();
@@ -1179,5 +1179,5 @@ public class WeixinProxy {
return chatApi.sendChatMessage(message);
}
public final static String VERSION = "1.5.2";
public final static String VERSION = "1.5.3";
}
@@ -93,5 +93,5 @@ public class WeixinSuiteProxy {
return this.suiteMap.get(suiteId);
}
public final static String VERSION = "1.5.2";
public final static String VERSION = "1.5.3";
}
@@ -43,6 +43,9 @@ public class PartyApi extends QyApi {
public int createParty(Party party) throws WeixinException {
String department_create_uri = getRequestUri("department_create_uri");
JSONObject obj = (JSONObject) JSON.toJSON(party);
if (party.getParentId() < 1) {
obj.remove("parentid");
}
if (party.getId() < 1) {
obj.remove("id");
}