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

View File

@ -440,3 +440,7 @@
* 2015-08-10
+ **weixin4j-qy**: 新增了会话API测试类
* 2015-08-13
+ `release`: weixin4j-[mp|qy] upgrade to 1.5.3,weixin4j-server upgrade to 1.0.5

View File

@ -26,26 +26,26 @@ weixin4j
如何获取
----------
###1.maven依赖
微信公众平台API(1.5.2,2015-08-09 released)
微信公众平台API(1.5.3,2015-08-13 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
</dependency>
微信企业号API(1.5.2,2015-08-09 released)
微信企业号API(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.0.4,2015-08-09 released)
微信回调消息服务器(1.0.5,2015-08-13 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
</dependency>
以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
<packaging>pom</packaging>
<name>weixin4j</name>
<url>https://github.com/foxinmy/weixin4j</url>

View File

@ -0,0 +1,16 @@
package com.foxinmy.weixin4j.http;
import java.io.IOException;
/**
* 响应处理
*
* @className HttpResponseHandler
* @author jy
* @date 2015年5月30日
* @since JDK 1.7
* @see
*/
public interface HttpResponseHandler<T> {
T handleResponse(HttpResponse response) throws IOException;
}

View File

@ -0,0 +1,24 @@
package com.foxinmy.weixin4j.model;
import java.io.Serializable;
public class NameValue implements Serializable {
private static final long serialVersionUID = 4557003825642138566L;
private final String name;
private final String value;
public NameValue(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
}

View File

@ -143,3 +143,7 @@
+ version upgrade to 1.5.2
+ oauth_redirect_uri配置属性名更改为user_oauth_redirect_uri
* 2015-08-13
+ version upgrade to 1.5.3

View File

@ -43,12 +43,12 @@ weixin4j-mp
如何使用
--------
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-mp</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
</dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`
@ -83,7 +83,7 @@ weixin4j.properties说明
#公众号登陆授权的重定向路径(使用OauthApi时需要填写)
user_oauth_redirect_uri=http://xxx
2.实例化微信企业号接口实现对象,调用具体的API方法
2.实例化微信企业号接口代理对象,调用具体的API方法
// 微信公众号API
WeixinProxy weixinProxy = new WeixinProxy();

View File

@ -99,3 +99,7 @@
* 2015-08-10
+ 新增了会话API测试类
* 2015-08-13
+ version upgrade to 1.5.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();

View File

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

View File

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

View File

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