release 1.5.1 & 1.0.3
This commit is contained in:
parent
82cc589640
commit
ddf3d77041
@ -366,3 +366,5 @@
|
||||
* 2015-07-04
|
||||
|
||||
+ **weixin4j-qy**: 新增[媒体素材接口](weixin4j-qy/src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java)
|
||||
|
||||
+ released 1.5.1
|
||||
12
README.md
12
README.md
@ -26,26 +26,26 @@ weixin4j
|
||||
如何获取
|
||||
----------
|
||||
###1.maven依赖
|
||||
微信公众平台API(1.5.0,2015-06-10 released)
|
||||
微信公众平台API(1.5.1,2015-07-04 released)
|
||||
|
||||
<dependency>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-mp</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</dependency>
|
||||
微信企业号API(1.5.0,2015-06-10 released)
|
||||
微信企业号API(1.5.1,2015-07-04 released)
|
||||
|
||||
<dependency>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-qy</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</dependency>
|
||||
微信被动消息服务器(1.0.2,2015-06-10 released)
|
||||
微信被动消息服务器(1.0.3,2015-07-04 released)
|
||||
|
||||
<dependency>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-server</artifactId>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
</dependency>
|
||||
|
||||
以上依赖如果出现Missing artifact错误 请尝试在eclipse里这么做
|
||||
|
||||
44
pom.xml
44
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>weixin4j</name>
|
||||
<url>https://github.com/foxinmy/weixin4j</url>
|
||||
@ -243,6 +243,7 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<!--
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>oss-snapshot</id>
|
||||
@ -253,4 +254,45 @@
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</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>
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</parent>
|
||||
<artifactId>weixin4j-base</artifactId>
|
||||
<name>weixin4j-base</name>
|
||||
|
||||
@ -117,3 +117,7 @@
|
||||
* 2015-06-23
|
||||
|
||||
+ 新增企业付款查询接口
|
||||
|
||||
* 2015-07-04
|
||||
|
||||
+ released 1.5.1
|
||||
@ -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>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-mp</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</dependency>
|
||||
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`中
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</parent>
|
||||
<artifactId>weixin4j-mp</artifactId>
|
||||
<name>weixin4j-mp</name>
|
||||
|
||||
@ -73,3 +73,5 @@
|
||||
* 2015-07-04
|
||||
|
||||
+ 新增[媒体素材接口](src/main/java/com/foxinmy/weixin4j/qy/api/MediaApi.java)
|
||||
|
||||
+ released 1.5.1
|
||||
@ -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>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-qy</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</dependency>
|
||||
1.需新增或拷贝`weixin4j.properties`文件到项目的`classpath`中
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<version>1.5.1</version>
|
||||
</parent>
|
||||
<artifactId>weixin4j-qy</artifactId>
|
||||
<name>weixin4j-qy</name>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# \u6d4b\u8bd5\u4e4b\u7528 \u6b63\u5f0f\u73af\u5883\u4e0bcopy\u4e00\u4efd\u5230classpath
|
||||
# \u4f01\u4e1a\u53f7\u4fe1\u606f
|
||||
account={"id":"wxf10bce209c91d0e2","secret":"cW0OtP7-7YJ7jHKFZaJW2skJHE9bLHadxOswBdVdI2walRBSPfTSA6QqD_QXw8JZ",\
|
||||
account={"id":"wx6d13cc18002bb2e5","secret":"vcCOTIb-cOzWWhL5r_qKVlfzdpInEEKPRz3K-5ezn-Xt48-tOkxPqEE5XbKLXXFn",\
|
||||
"token":"gp2eGT5mIpngr",\
|
||||
"encodingAesKey":"BRYfV4zPFUJb3v3MySNBg1ERKE3vyyMRoScu76vFySv",\
|
||||
"suiteId":"\u5e94\u7528\u5957\u4ef6\u7684id","suiteSecret":"\u5e94\u7528\u5957\u4ef6\u7684secret",\
|
||||
|
||||
@ -32,7 +32,7 @@ public class MediaTest extends TokenTest {
|
||||
@Test
|
||||
public void upload() throws IOException, WeixinException {
|
||||
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
|
||||
// 1CF6sBgWWFGY9s4JCEet5ASszsTuyHpeN1f2LWXADveqBlKoxSgb3cO401NEM7dNY
|
||||
Assert.assertNotNull(mediaId);
|
||||
@ -42,8 +42,8 @@ public class MediaTest extends TokenTest {
|
||||
@Test
|
||||
public void download() throws WeixinException, IOException {
|
||||
File file = mediaApi
|
||||
.downloadMediaFile(1,
|
||||
"jM5OWhnYb2DgrNm97HGj8aUdsZcweQc93tnwbH1mERo");
|
||||
.downloadMediaFile(3,
|
||||
"272LZlRmz1h7V2lcsvouCxwbJ_Dh-rgdDecX_26f_HDzJSZiSZjBeqeSYI1r9Ad9q66iWTGmRDUFgWOvz_fGVGi1BRZ4wjtkhPe2XcK-oomk");
|
||||
Assert.assertTrue(file.exists());
|
||||
}
|
||||
|
||||
|
||||
@ -90,7 +90,6 @@ public class UserTest extends TokenTest {
|
||||
@Test
|
||||
public void convert() throws WeixinException {
|
||||
String[] result = userApi.userid2openid("jinyu", 1);
|
||||
System.err.println(result);
|
||||
System.err.println(userApi.openid2userid(result[0]));
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,3 +53,7 @@
|
||||
* 2015-06-10
|
||||
|
||||
+ released 1.0.2
|
||||
|
||||
* 2015-07-04
|
||||
|
||||
+ released 1.0.3
|
||||
@ -15,19 +15,19 @@ base on netty.
|
||||
|
||||
如何使用
|
||||
-------
|
||||
###maven依赖(1.0.2,2015-06-10 released)
|
||||
###maven依赖(1.0.3,2015-07-04 released)
|
||||
|
||||
<dependency>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-server</artifactId>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
</dependency>
|
||||
###编写服务启动类
|
||||
明文模式并总是调试输出微信请求信息的服务启动类.
|
||||
|
||||
public class MessageServerStartup{
|
||||
public static void main(String[] args) {
|
||||
new WeixinServerBootstrap("开发者token").addHandler(
|
||||
new WeixinServerBootstrap("appid或微信原始ID","开发者token").addHandler(
|
||||
DebugMessageHandler.global).startup();
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-server</artifactId>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
<name>weixin4j-server</name>
|
||||
<url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-server</url>
|
||||
<description>微信消息netty服务器</description>
|
||||
@ -235,6 +235,7 @@
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
<!--
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>oss-snapshot</id>
|
||||
@ -245,4 +246,45 @@
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</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>
|
||||
Loading…
x
Reference in New Issue
Block a user