update remark

This commit is contained in:
jy.hu 2014-11-03 15:58:30 +08:00
parent 45ce10141a
commit 487e681977
8 changed files with 61 additions and 56 deletions

View File

@ -17,6 +17,7 @@ weixin4j
`微信支付(公众号)` `微信支付(公众号)`
* weixin4j-qy * weixin4j-qy
`企业号API封装` `企业号API封装`
更新LOG 更新LOG
@ -47,18 +48,18 @@ weixin4j
接下来 接下来
------ ------
`退款&对账` * 退款&对账
`企业号API封装` * 企业号API封装
`公众号智能接口` * 公众号智能接口
`微信消息加密` * 微信消息加密
`被扫支付` * 被扫支付
`公众号多客服` * 公众号多客服
`微信小店` * 微信小店
`微信卡券` * 微信卡券

View File

@ -8,6 +8,7 @@ weixin4j-base
功能列表 功能列表
------- -------
`Token的实现` `Token的实现`
`通用消息实体` `通用消息实体`

View File

@ -29,6 +29,7 @@ weixin4j-mp
+ HelperApi `辅助API` + HelperApi `辅助API`
* weixin4j-mp-server * weixin4j-mp-server
`netty服务器 & 消息分发` `netty服务器 & 消息分发`
更新LOG 更新LOG

View File

@ -12,7 +12,7 @@
<name>weixin4j-mp</name> <name>weixin4j-mp</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp</url> <url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp</url>
<description>微信公众工具包</description> <description>微信公众平台工具包</description>
<modules> <modules>
<module>weixin4j-mp-api</module> <module>weixin4j-mp-api</module>
<module>weixin4j-mp-server</module> <module>weixin4j-mp-server</module>

View File

@ -7,6 +7,7 @@ weixin4j-mp-api
功能列表 功能列表
------- -------
* MediaApi `上传/下载媒体文件API` * MediaApi `上传/下载媒体文件API`
* NotifyApi `客服消息API` * NotifyApi `客服消息API`
@ -41,29 +42,29 @@ weixin.properties
示例 示例
>**`account={"appId":"appId","appSecret":"appSecret", >**account={"appId":"appId","appSecret":"appSecret",
"token":"开放者的token 非必须","openId":"公众号的openid 非必须", "token":"开放者的token 非必须","openId":"公众号的openid 非必须",
"mchId":"V3.x版本下的微信商户号", "mchId":"V3.x版本下的微信商户号",
"partnerId":"财付通的商户号","partnerKey":"财付通商户权限密钥Key", "partnerId":"财付通的商户号","partnerKey":"财付通商户权限密钥Key",
"paySignKey":"微信支付中调用API的密钥"} "paySignKey":"微信支付中调用API的密钥"}**
token_path=/tmp/weixin/token` >**token_path=/tmp/weixin/token`
`qr_path=/tmp/weixin/qr` `qr_path=/tmp/weixin/qr
`media_path=/tmp/weixin/media` `media_path=/tmp/weixin/media
`bill_path=/tmp/weixin/bill`** `bill_path=/tmp/weixin/bill**
2.实例化一个`WeixinProxy`对象,调用API. 2.实例化一个`WeixinProxy`对象,调用API.
``` java ``` java
WeixinProxy weixinProxy = new WeixinProxy(); WeixinProxy weixinProxy = new WeixinProxy();
// weixinProxy = new WeixinProxy(appid,appsecret); // weixinProxy = new WeixinProxy(appid,appsecret);
weixinProxy.getUser(openId); weixinProxy.getUser(openId);
``` ```
3.针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`(继承`AbstractTokenHolder`类并重写`getToken`方法),默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`. 3.针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`(继承`AbstractTokenHolder`类并重写`getToken`方法),默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`.
``` java ``` java
WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder()); WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder());
// weixinProxy = new WeixinProxy(new RedisTokenHolder(appid,appsecret)); // weixinProxy = new WeixinProxy(new RedisTokenHolder(appid,appsecret));
``` ```
4.mvn package. 4.mvn package.
更新LOG 更新LOG

View File

@ -10,7 +10,7 @@
</parent> </parent>
<artifactId>weixin4j-mp-api</artifactId> <artifactId>weixin4j-mp-api</artifactId>
<name>weixin4j-mp-api</name> <name>weixin4j-mp-api</name>
<url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp</url> <url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp/weixin4j-api</url>
<description>微信公众号API</description> <description>微信公众号API</description>
<build> <build>
<finalName>weixin4j-mp-api</finalName> <finalName>weixin4j-mp-api</finalName>

View File

@ -8,6 +8,7 @@ weixin4j-mp-server
功能列表 功能列表
------- -------
* `netty构建服务器` * `netty构建服务器`
* `消息分发` * `消息分发`

View File

@ -10,7 +10,7 @@
</parent> </parent>
<artifactId>weixin4j-mp-server</artifactId> <artifactId>weixin4j-mp-server</artifactId>
<name>weixin4j-mp-server</name> <name>weixin4j-mp-server</name>
<url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp</url> <url>https://github.com/foxinmy/weixin4j/tree/master/weixin4j-mp/weixin4j-server</url>
<description>微信公众号服务</description> <description>微信公众号服务</description>
<build> <build>
<plugins> <plugins>