release: weixin4j-[mp|qy] upgrade to 1.5.2,weixin4j-server upgrade to

1.0.4
This commit is contained in:
jinyu 2015-08-09 09:37:36 +08:00
parent 23c7960a83
commit 292fc5e01e
10 changed files with 22 additions and 20 deletions

View File

@ -434,3 +434,5 @@
+ **weixin4j-qy**: 会话API暴露到WeixinProxy类
+ **weixin4j-qy**: 重命名NotifyApi#sendNotify为sendNotifyMessage
+ `release`: weixin4j-[mp|qy] upgrade to 1.5.2,weixin4j-server upgrade to 1.0.4

View File

@ -26,26 +26,26 @@ weixin4j
如何获取
----------
###1.maven依赖
微信公众平台API(1.5.1,2015-07-04 released)
微信公众平台API(1.5.2,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</dependency>
微信企业号API(1.5.1,2015-07-04 released)
微信企业号API(1.5.2,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</dependency>
微信回调消息服务器(1.0.3,2015-07-04 released)
微信回调消息服务器(1.0.4,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId>
<version>1.0.3</version>
<version>1.0.4</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.1</version>
<version>1.5.2</version>
<packaging>pom</packaging>
<name>weixin4j</name>
<url>https://github.com/foxinmy/weixin4j</url>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</parent>
<artifactId>weixin4j-base</artifactId>
<name>weixin4j-base</name>

View File

@ -43,12 +43,12 @@ weixin4j-mp
如何使用
--------
0.maven依赖(1.5.1,2015-07-04 released)
0.maven依赖(1.5.2,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</parent>
<artifactId>weixin4j-mp</artifactId>
<name>weixin4j-mp</name>

View File

@ -37,12 +37,12 @@ weixin4j-qy
如何使用
--------
0.maven依赖(1.5.1,2015-07-04 released)
0.maven依赖(1.5.2,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
</parent>
<artifactId>weixin4j-qy</artifactId>
<name>weixin4j-qy</name>

View File

@ -15,12 +15,12 @@ base on netty.
如何使用
-------
###maven依赖(1.0.3,2015-07-04 released)
###maven依赖(1.0.4,2015-08-09 released)
<dependency>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
</dependency>
###编写服务启动类
明文模式并总是调试输出微信请求信息的服务启动类.
@ -66,21 +66,21 @@ base on netty.
WeixinMessageInterceptor interceptor = new MessageInterceptorAdapter() {
@Override
public boolean preHandle(ChannelHandlerContext context,
WeixinRequest request, Object message,
WeixinRequest request, WeixinResponse response, Object message,
WeixinMessageHandler handler) throws WeixinException {
context.write(new TextResponse("所有消息被拦截了!"));
return false;
}
@Override
public void postHandle(ChannelHandlerContext context,
WeixinRequest request, WeixinResponse response,
WeixinRequest request, WeixinResponse response, WeixinResponse response,
Object message, WeixinMessageHandler handler)
throws WeixinException {
System.err.println("preHandle返回为true,执行handler后");
}
@Override
public void afterCompletion(ChannelHandlerContext context,
WeixinRequest request, Object message,
WeixinRequest request, WeixinResponse response, Object message,
WeixinMessageHandler handler, WeixinException exception)
throws WeixinException {
System.err.println("请求处理完毕");

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<name>weixin4j-server</name>
<url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-server</url>
<description>微信消息netty服务器</description>