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