release 1.5.1 & 1.0.3

This commit is contained in:
jinyu 2015-07-04 22:15:45 +08:00
parent 82cc589640
commit ddf3d77041
16 changed files with 122 additions and 27 deletions

View File

@ -365,4 +365,6 @@
* 2015-07-04 * 2015-07-04
+ **weixin4j-qy**: 新增[媒体素材接口](weixin4j-qy/src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java) + **weixin4j-qy**: 新增[媒体素材接口](weixin4j-qy/src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java)
+ released 1.5.1

View File

@ -26,26 +26,26 @@ weixin4j
如何获取 如何获取
---------- ----------
###1.maven依赖 ###1.maven依赖
微信公众平台API(1.5.0,2015-06-10 released) 微信公众平台API(1.5.1,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<version>1.5.0</version> <version>1.5.1</version>
</dependency> </dependency>
微信企业号API(1.5.0,2015-06-10 released) 微信企业号API(1.5.1,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId> <artifactId>weixin4j-qy</artifactId>
<version>1.5.0</version> <version>1.5.1</version>
</dependency> </dependency>
微信被动消息服务器(1.0.2,2015-06-10 released) 微信被动消息服务器(1.0.3,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId> <artifactId>weixin4j-server</artifactId>
<version>1.0.2</version> <version>1.0.3</version>
</dependency> </dependency>
以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做 以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做

44
pom.xml
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.0</version> <version>1.5.1</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>
@ -243,6 +243,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<!--
<distributionManagement> <distributionManagement>
<snapshotRepository> <snapshotRepository>
<id>oss-snapshot</id> <id>oss-snapshot</id>
@ -253,4 +254,45 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
-->
<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://42.62.64.62:8081/nexus/content/repositories/releases/
</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Internal Snapshots</name>
<url>http://42.62.64.62:8081/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
<id>public</id>
<name>Public Repositories</name>
<url>http://42.62.64.62:8081/nexus/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>public</id>
<name>Public Repositories</name>
<url>http://42.62.64.62:8081/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</project> </project>

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.0</version> <version>1.5.1</version>
</parent> </parent>
<artifactId>weixin4j-base</artifactId> <artifactId>weixin4j-base</artifactId>
<name>weixin4j-base</name> <name>weixin4j-base</name>

View File

@ -116,4 +116,8 @@
* 2015-06-23 * 2015-06-23
+ 新增企业付款查询接口 + 新增企业付款查询接口
* 2015-07-04
+ released 1.5.1

View File

@ -43,12 +43,12 @@ weixin4j-mp
如何使用 如何使用
-------- --------
0.maven依赖(1.5.0,2015-06-10 released) 0.maven依赖(1.5.1,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<version>1.5.0</version> <version>1.5.1</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.0</version> <version>1.5.1</version>
</parent> </parent>
<artifactId>weixin4j-mp</artifactId> <artifactId>weixin4j-mp</artifactId>
<name>weixin4j-mp</name> <name>weixin4j-mp</name>

View File

@ -72,4 +72,6 @@
* 2015-07-04 * 2015-07-04
+ 新增[媒体素材接口](src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java) + 新增[媒体素材接口](src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java)
+ released 1.5.1

View File

@ -35,12 +35,12 @@ weixin4j-qy
如何使用 如何使用
-------- --------
0.maven依赖(1.5.0,2015-06-10 released) 0.maven依赖(1.5.1,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-qy</artifactId> <artifactId>weixin4j-qy</artifactId>
<version>1.5.0</version> <version>1.5.1</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.0</version> <version>1.5.1</version>
</parent> </parent>
<artifactId>weixin4j-qy</artifactId> <artifactId>weixin4j-qy</artifactId>
<name>weixin4j-qy</name> <name>weixin4j-qy</name>

View File

@ -1,6 +1,6 @@
# \u6d4b\u8bd5\u4e4b\u7528 \u6b63\u5f0f\u73af\u5883\u4e0bcopy\u4e00\u4efd\u5230classpath # \u6d4b\u8bd5\u4e4b\u7528 \u6b63\u5f0f\u73af\u5883\u4e0bcopy\u4e00\u4efd\u5230classpath
# \u4f01\u4e1a\u53f7\u4fe1\u606f # \u4f01\u4e1a\u53f7\u4fe1\u606f
account={"id":"wxf10bce209c91d0e2","secret":"cW0OtP7-7YJ7jHKFZaJW2skJHE9bLHadxOswBdVdI2walRBSPfTSA6QqD_QXw8JZ",\ account={"id":"wx6d13cc18002bb2e5","secret":"vcCOTIb-cOzWWhL5r_qKVlfzdpInEEKPRz3K-5ezn-Xt48-tOkxPqEE5XbKLXXFn",\
"token":"gp2eGT5mIpngr",\ "token":"gp2eGT5mIpngr",\
"encodingAesKey":"BRYfV4zPFUJb3v3MySNBg1ERKE3vyyMRoScu76vFySv",\ "encodingAesKey":"BRYfV4zPFUJb3v3MySNBg1ERKE3vyyMRoScu76vFySv",\
"suiteId":"\u5e94\u7528\u5957\u4ef6\u7684id","suiteSecret":"\u5e94\u7528\u5957\u4ef6\u7684secret",\ "suiteId":"\u5e94\u7528\u5957\u4ef6\u7684id","suiteSecret":"\u5e94\u7528\u5957\u4ef6\u7684secret",\

View File

@ -32,7 +32,7 @@ public class MediaTest extends TokenTest {
@Test @Test
public void upload() throws IOException, WeixinException { public void upload() throws IOException, WeixinException {
File file = new File("//Users/jy/Downloads/import_file.csv"); File file = new File("//Users/jy/Downloads/import_file.csv");
String mediaId = mediaApi.uploadMedia(1, file); String mediaId = mediaApi.uploadMedia(3, file);
// 1-1gpykXsR8bhNvO13-ZvskptCBxQF1UE535jFdCF63N2inGRAqEb-psF6eppjIIl // 1-1gpykXsR8bhNvO13-ZvskptCBxQF1UE535jFdCF63N2inGRAqEb-psF6eppjIIl
// 1CF6sBgWWFGY9s4JCEet5ASszsTuyHpeN1f2LWXADveqBlKoxSgb3cO401NEM7dNY // 1CF6sBgWWFGY9s4JCEet5ASszsTuyHpeN1f2LWXADveqBlKoxSgb3cO401NEM7dNY
Assert.assertNotNull(mediaId); Assert.assertNotNull(mediaId);
@ -42,8 +42,8 @@ public class MediaTest extends TokenTest {
@Test @Test
public void download() throws WeixinException, IOException { public void download() throws WeixinException, IOException {
File file = mediaApi File file = mediaApi
.downloadMediaFile(1, .downloadMediaFile(3,
"jM5OWhnYb2DgrNm97HGj8aUdsZcweQc93tnwbH1mERo"); "272LZlRmz1h7V2lcsvouCxwbJ_Dh-rgdDecX_26f_HDzJSZiSZjBeqeSYI1r9Ad9q66iWTGmRDUFgWOvz_fGVGi1BRZ4wjtkhPe2XcK-oomk");
Assert.assertTrue(file.exists()); Assert.assertTrue(file.exists());
} }

View File

@ -90,7 +90,6 @@ public class UserTest extends TokenTest {
@Test @Test
public void convert() throws WeixinException { public void convert() throws WeixinException {
String[] result = userApi.userid2openid("jinyu", 1); String[] result = userApi.userid2openid("jinyu", 1);
System.err.println(result);
System.err.println(userApi.openid2userid(result[0])); System.err.println(userApi.openid2userid(result[0]));
} }
} }

View File

@ -52,4 +52,8 @@
* 2015-06-10 * 2015-06-10
+ released 1.0.2 + released 1.0.2
* 2015-07-04
+ released 1.0.3

View File

@ -15,19 +15,19 @@ base on netty.
如何使用 如何使用
------- -------
###maven依赖(1.0.2,2015-06-10 released) ###maven依赖(1.0.3,2015-07-04 released)
<dependency> <dependency>
<groupId>com.foxinmy</groupId> <groupId>com.foxinmy</groupId>
<artifactId>weixin4j-server</artifactId> <artifactId>weixin4j-server</artifactId>
<version>1.0.2</version> <version>1.0.3</version>
</dependency> </dependency>
###编写服务启动类 ###编写服务启动类
明文模式并总是调试输出微信请求信息的服务启动类. 明文模式并总是调试输出微信请求信息的服务启动类.
public class MessageServerStartup{ public class MessageServerStartup{
public static void main(String[] args) { public static void main(String[] args) {
new WeixinServerBootstrap("开发者token").addHandler( new WeixinServerBootstrap("appid或微信原始ID","开发者token").addHandler(
DebugMessageHandler.global).startup(); DebugMessageHandler.global).startup();
} }
} }

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.2</version> <version>1.0.3</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>
@ -235,6 +235,7 @@
</build> </build>
</profile> </profile>
</profiles> </profiles>
<!--
<distributionManagement> <distributionManagement>
<snapshotRepository> <snapshotRepository>
<id>oss-snapshot</id> <id>oss-snapshot</id>
@ -245,4 +246,45 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
-->
<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://42.62.64.62:8081/nexus/content/repositories/releases/
</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Internal Snapshots</name>
<url>http://42.62.64.62:8081/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
<id>public</id>
<name>Public Repositories</name>
<url>http://42.62.64.62:8081/nexus/content/groups/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>public</id>
<name>Public Repositories</name>
<url>http://42.62.64.62:8081/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</project> </project>