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**: 会话API暴露到WeixinProxy类
+ **weixin4j-qy**: 重命名NotifyApi#sendNotify为sendNotifyMessage + **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依赖 ###1.maven依赖
微信公众平台API(1.5.1,2015-07-04 released) 微信公众平台API(1.5.2,2015-08-09 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</dependency> </dependency>
微信企业号API(1.5.1,2015-07-04 released) 微信企业号API(1.5.2,2015-08-09 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId> <artifactId>weixin4j-qy</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</dependency> </dependency>
微信回调消息服务器(1.0.3,2015-07-04 released) 微信回调消息服务器(1.0.4,2015-08-09 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId> <artifactId>weixin4j-server</artifactId>
<version>1.0.3</version> <version>1.0.4</version>
</dependency> </dependency>
以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做 以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做

View File

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

View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId> <artifactId>weixin4j</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</parent> </parent>
<artifactId>weixin4j-base</artifactId> <artifactId>weixin4j-base</artifactId>
<name>weixin4j-base</name> <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> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</dependency> </dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath` 1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`

View File

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j</artifactId> <artifactId>weixin4j</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</parent> </parent>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<name>weixin4j-mp</name> <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> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId> <artifactId>weixin4j-qy</artifactId>
<version>1.5.1</version> <version>1.5.2</version>
</dependency> </dependency>
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath` 1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`

View File

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

View File

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