weixin4j-[mp|qy] upgrade to 1.5.3
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user