Merge branch 'master' into develop

This commit is contained in:
Binary Wang 2019-05-18 17:31:17 +08:00
commit 61f3914c34
36 changed files with 152 additions and 57 deletions

30
.gitee/ISSUE_TEMPLATE.md Normal file
View File

@ -0,0 +1,30 @@
强烈建议大家到 github 相关页面提交问题,方便统一查询管理,具体页面地址: https://github.com/Wechat-Group/WxJava/issues
当然如果必须在这里提问,请务必按以下格式填写,谢谢配合~
# 问题标题提问前请确保阅读过项目首页说明以及wiki文档相关内容
### 简要描述
__明确描述下你所遇到的问题友情提示如果确认属于bug请参考贡献指南直接提交PR省的花费时间在这里描述问题非常感谢配合__
### 模块版本情况
* WxJava 模块名:
* WxJava 版本号:
### 期待结果
__尽量详细描述__
### 实际情况
__尽量详细描述__
### 重现步骤
1.
2.
3.
### 日志
__将日志放在 [pastebin](https://paste.ubuntu.com/) 或者其他地方并将url地址贴在这里__

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
# 提问前请确保阅读过项目首页说明以及wiki开发文档相关内容完成内容后请务必移除包括本句在内的无用内容以免影响他人阅读谢谢合作~
# 另外如果确认属于bug而且已明确如何修复请参考贡献指南直接提交PR省的浪费时间在这里描述问题非常感谢配合
### 简要描述
__明确描述下你所遇到的问题。__
### 模块版本情况
* WxJava 模块名:
* WxJava 版本号:
### 期待结果 和 实际情况
__尽量详细描述__
### 重现步骤
1.
2.
3.
### 日志
__将日志放在 [pastebin](https://paste.ubuntu.com/) 或者其他地方并将url地址贴在这里__

View File

@ -0,0 +1,13 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
# 提问前请确保阅读过项目首页说明以及wiki开发文档相关内容完成内容后请务必移除包括本句在内的无用内容以免影响他人阅读谢谢合作~
### 简要描述
__请提供所需功能对应的微信官方文档地址以便进行确认。__

Binary file not shown.

View File

@ -1 +1,36 @@
Please refer to [【代码贡献指南】](contribution.md).
# 代码贡献指南
1. 首先非常欢迎和感谢对本项目发起Pull Request的同学。
1. **特别提示请务必在develop分支提交PRmaster分支目前仅是正式版的代码即发布正式版本后才会从develop分支进行合并。**
1. 本项目代码风格为使用2个空格代表一个Tab因此在提交代码时请注意一下否则很容易在IDE格式化代码后与原代码产生大量diff这样会给其他人阅读代码带来极大的困扰。
1. 为了便于设置本项目引入editorconfig支持请使用Eclipse的同学在贡献代码前安装相关插件而IntelliJ IDEA新版本自带支持如果没有可自行安装插件。
1. **提交代码前请检查代码是否已经格式化并且保证新增加或者修改的方法都有完整的参数说明而public方法必须拥有相应的单元测试并通过测试。**
1. 本项目可以采用两种方式接受代码贡献:
- 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程因此在发起Pull Request的时候请选择develop分支详细步骤参考后文推荐使用此种方式贡献代码。
- ***暂停此种方式,请使用第一种***另外一种贡献代码的方式就是加入SDK Developers开发组前提是对自己的代码足够自信就可以申请加入加入之后可以随时直接提交代码但要注意对所做的修改或新增的代码进行单元测试保证提交代码没有明显问题。
### PR方式贡献代码步骤
* 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/WxJava`,然后 `clone` 到本地,并设置用户信息。
```bash
$ git clone git@github.com:my_user/WxJava.git
$ cd WxJava
$ git config user.name "yourname"
$ git config user.email "your email"
```
* 修改代码后提交,并推送到自己的仓库。
```bash
$ #do some change on the content
$ git commit -am "Fix issue #1: change something"
$ git push
```
* 在 GitHub 网站上提交 Pull Request。
* 定期使用项目仓库内容更新自己仓库内容。
```bash
$ git remote add upstream https://github.com/Wechat-Group/WxJava
$ git fetch upstream
$ git checkout develop
$ git rebase upstream/develop
$ git push -f origin develop
```

View File

@ -15,22 +15,22 @@
<tr>
<td align="left" valign="middle">
<a href="http://mp.weixin.qq.com/mp/homepage?__biz=MzI3MzAwMzk4OA==&hid=1&sn=f31af3bf562b116b061c9ab4edf70b61&scene=18#wechat_redirect" target="_blank">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/qrcodes/mp.jpg">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/images/qrcodes/mp.png">
</a>
</td>
<td align="center" valign="middle">
<a href="https://cloud.tencent.com/redirect.php?redirect=1014&cps_key=a4c06ffe004dbcda44036daa1bf8f876&from=console" target="_blank">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/banners/tcloud.jpg">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/images/banners/tcloud.jpg">
</a>
</td>
<td align="right" valign="middle">
<a href="https://coding.net/?utm_source=WxJava" target="_blank">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/banners/coding.jpg">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/images/banners/coding.jpg">
</a>
</td>
<td align="center" valign="middle">
<a href="https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=7makzf5h" target="_blank">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/banners/aliyun.jpg">
<img height="120" src="https://gitee.com/binary/weixin-java-tools/raw/master/images/banners/aliyun.jpg">
</a>
</td>
</tr>
@ -39,28 +39,29 @@
### 重要信息
1. **2018-12-23 项目更名为WxJava并发布 [【3.3.0正式版】](https://github.com/Wechat-Group/WxJava/releases)**
1. 新手重要提示本项目仅是一个SDK开发工具包未提供Web实现建议使用maven或gradle引用本项目即可使用本SDK提供的各种功能详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。
1. QQ群/微信群/企业微信/钉钉企业群等请扫描上面的二维码关注微信公众号【WxJava】后点击相关菜单获取相关信息加入也可以在微信中搜索 `weixin-java-tools``WxJava` 关注公众号公众号会及时通知SDK相关更新信息并不定期分享微信Java开发相关技术知识
1. 钉钉企业群:[请点击链接申请加入](https://h5.dingtalk.com/inviteColleague/index.html#/invite/9ed100cc4a/E1DF918E32E398D191E7FE61FE0552A6) 或者 [用手机钉钉APP扫码](https://gitee.com/binary/weixin-java-tools/raw/master/qrcodes/.jpg) 申请加入。
1. 新手提问前,请先阅读[【提问的智慧】](http://www.binarywang.com/article/smart-questions),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki)
1. 寻求帮助时需贴代码或大长串异常信息的请利用http://paste.ubuntu.com
1. 新手重要提示本项目仅是一个SDK开发工具包未提供Web实现建议使用 `maven``gradle` 引用本项目即可使用本SDK提供的各种功能详情可参考 **[【Demo项目】](demo.md)** 或本项目中的部分单元测试代码;另外微信开发新手请务必阅读[【开发文档 Wiki 首页】](https://github.com/Wechat-Group/WxJava/wiki)的常见问题部分,可以少走很多弯路,节省不少时间。
1. 入群技术交流若想获得QQ群/微信群/企业微信/钉钉企业群等信息的,请使用微信扫描上面的微信公众号二维码关注 `WxJava` 后点击相关菜单即可,同时也可以在微信中搜索 `weixin-java-tools``WxJava` 后选择正确的公众号进行关注该公众号会及时通知SDK相关更新信息并不定期分享微信Java开发相关技术知识
1. 付费QQ群**注意刚入群会有5分钟禁言稍等片刻即可正常发言** [![加入QQ群](https://img.shields.io/badge/QQ群-343954419-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=731dc3e7ea31ebe25376cc1a791445468612c63fd0e9e05399b088ec81fd9e15) 或 [![加入QQ群](https://img.shields.io/badge/QQ群-343954419-blue.svg)](http://jq.qq.com/?_wv=1027&k=40lRskK),或者请自行搜索群号`343954419`进行添加;当然由于某种原因无法入群的,可关注公众号后获取其他群的加入方式;
1. 钉钉企业群:[请点击链接申请加入](https://h5.dingtalk.com/inviteColleague/index.html#/invite/9ed100cc4a/E1DF918E32E398D191E7FE61FE0552A6) 或者 [用手机钉钉APP扫码](https://gitee.com/binary/weixin-java-tools/raw/master/images/qrcodes/ding.jpg) 申请加入。
1. 微信开发新手或者Java开发新手在群内提问或新开Issue提问前请先阅读[【提问的智慧】](http://www.binarywang.com/article/smart-questions),并确保已查阅过 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki) ,避免浪费大家的宝贵时间;
1. 寻求帮助时需贴代码或大长串异常信息的,请利用 http://paste.ubuntu.com
--------------------------------
### 其他说明
1. **阅读源码的同学请注意本SDK为简化代码编译时加入了lombok支持如果不了解lombok的话请先学习下相关知识比如可以阅读[此文章](https://mp.weixin.qq.com/s/cUc-bUcprycADfNepnSwZQ)**
1. **阅读源码的同学请注意本SDK为简化代码编译时加入了`lombok`支持,如果不了解`lombok`的话,请先学习下相关知识,比如可以阅读[此文章](https://mp.weixin.qq.com/s/cUc-bUcprycADfNepnSwZQ)**
1. 如有新功能需求发现BUG或者由于微信官方接口调整导致的代码问题可以直接在[【Issues】](https://github.com/Wechat-Group/WxJava/issues)页提出issue便于讨论追踪问题
1. 如果想贡献代码,请阅读[【代码贡献指南】](contribution.md)
1. 如果需要贡献代码请务必在提交PR之前先仔细阅读[【代码贡献指南】](CONTRIBUTING.md),谢谢理解配合
1. 本SDK要求的最低JDK版本是1.7还在使用JDK6的用户请参考[【此项目】]( https://github.com/binarywang/weixin-java-tools-for-jdk6) 而其他更早的JDK版本则需要自己改造实现。
1. [开源中国本项目的首页](https://www.oschina.net/p/weixin-java-tools-new),欢迎大家积极留言评分 🙂
1. SDK详细开发文档请查阅 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki),部分文档可能未能及时更新,如有发现,可以及时上报或者自行修改。
1. **如果本SDK对您有所帮助,欢迎对我们的努力进行肯定,可以扫描[【支付宝付款码】](qrcodes/alipay.jpg)或者[【微信支付二维码】](qrcodes/wepay.jpg)进行打赏,或者直接前往[【托管于码云的项目首页】](http://gitee.com/binary/weixin-java-tools),在评论区上方可以找到“捐助”按钮。非常感谢各位打赏和捐助的同学!**
1. SDK开发文档请查阅 [【开发文档Wiki】](https://github.com/wechat-group/WxJava/wiki),部分文档可能未能及时更新,如有发现,可以及时上报或者自行修改。
1. **如果本开发工具包对您有所帮助,欢迎对我们的努力进行肯定,可以直接前往[【托管于码云的项目首页】](http://gitee.com/binary/weixin-java-tools),在页尾部分找到“捐助”按钮进行打赏,多多益善 😄。非常感谢各位打赏和捐助的同学!**
1. 各个模块的Javadoc可以在线查看[weixin-java-miniapp](http://binary.ac.cn/weixin-java-miniapp-javadoc/)、[weixin-java-pay](http://binary.ac.cn/weixin-java-pay-javadoc/)、[weixin-java-mp](http://binary.ac.cn/weixin-java-mp-javadoc/)、[weixin-java-common](http://binary.ac.cn/weixin-java-common-javadoc/)、[weixin-java-cp](http://binary.ac.cn/weixin-java-cp-javadoc/)、[weixin-java-open](http://binary.ac.cn/weixin-java-open-javadoc/)
1. 本SDK项目在以下代码托管网站同步更新:
* 码云https://gitee.com/binary/weixin-java-tools
* GitHubhttps://github.com/wechat-group/WxJava
---------------------------------
### SDK使用方式
### Maven 引用方式
注意:最新版本(包括测试版)为 [![Maven Central](https://img.shields.io/maven-central/v/com.github.binarywang/wx-java.svg)](http://mvnrepository.com/artifact/com.github.binarywang/wx-java),以下为最新正式版。
```xml
@ -70,22 +71,37 @@
<version>3.3.0</version>
</dependency>
```
* 各模块的`artifactId`
<details>
<summary>各模块的artifactId请点击此处展开查看</summary>
- 微信小程序:`weixin-java-miniapp`
- 微信支付:`weixin-java-pay`
- 微信开放平台:`weixin-java-open`
- 公众号(包括订阅号和服务号):`weixin-java-mp`
- 企业号/企业微信:`weixin-java-cp`
</details>
---------------------------------
### 版本说明
1. 本项目定为大约每两个月发布一次正式版版本号格式为X.X.0如2.1.02.2.0等遇到重大问题需修复会及时提交新版本欢迎大家随时提交Pull Request
1. BUG修复和新特性一般会先发布成小版本作为临时测试版本如3.1.8.B即尾号不为0并添加B以区别于正式版
<details>
<summary>点此展开查看</summary>
1. 本项目定为大约每两个月发布一次正式版(同时 `develop` 分支代码合并进入 `master` 分支),版本号格式为 `X.X.0`(如`2.1.0``2.2.0`等遇到重大问题需修复会及时提交新版本欢迎大家随时提交Pull Request
1. BUG修复和新特性一般会先发布成小版本作为临时测试版本如`3.1.8.B`即尾号不为0并添加B以区别于正式版代码仅存在于 `develop` 分支中;
1. 目前最新版本号为 [![Maven Central](https://img.shields.io/maven-central/v/com.github.binarywang/wx-java.svg)](http://mvnrepository.com/artifact/com.github.binarywang/wx-java) ,也可以通过访问链接 [【微信支付】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-pay%22) 、[【微信小程序】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-miniapp%22) 、[【公众号】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-mp%22) 、[【企业微信】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-cp%22)、[【开放平台】](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.binarywang%22%20AND%20a%3A%22weixin-java-open%22)
分别查看所有最新的版本。
</details>
----------------------------------
### 使用案例
完整案例登记列表,请[【访问这里】](https://github.com/Wechat-Group/weixin-java-tools/issues/729)查看,欢迎提供更多的案例。
<details>
<summary>已整理过的案例列表,请点击此处展开查看</summary>
1. 开源项目https://github.com/workcheng/weiya
1. 开源项目https://github.com/jmdhappy/xxpay-master
1. 开源工具https://github.com/rememberber/WePush
@ -111,12 +127,15 @@
1. 锐捷网络Saleslink
1. 洽洽企业号
1. HTC企业微信
1. 其他更多案例请[【访问这里】](https://github.com/Wechat-Group/weixin-java-tools/issues/729),持续更新中。
</details>
----------------------------------
### 贡献者列表
特别感谢参与贡献的所有同学!所有贡献者列表请在[此处](https://github.com/Wechat-Group/WxJava/graphs/contributors)查看。
以下仅列出贡献次数最多的几位,欢迎大家踊跃贡献代码!
特别感谢参与贡献的所有同学,所有贡献者列表请在[此处](https://github.com/Wechat-Group/WxJava/graphs/contributors)查看,欢迎大家继续踊跃贡献代码!
<details>
<summary>点击此处展开查看贡献次数最多的几位同学</summary>
1. [chanjarster (Daniel Qian)](http://github.com/chanjarster)
1. [binarywang (Binary Wang)](http://github.com/binarywang)
1. [mgcnrx11](http://github.com/mgcnrx11)
@ -127,3 +146,5 @@
1. [tianmu](http://github.com/tianmu)
1. [rememberber (周波)](http://github.com/rememberber)
1. [charmingoh (Charming)](http://github.com/charmingoh)
</details>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,35 +0,0 @@
# 代码贡献指南
1. 首先非常欢迎和感谢对本项目发起Pull Request的同学。
1. 本项目代码风格为使用2个空格代表一个Tab因此在提交代码时请注意一下否则很容易在IDE格式化代码后与原代码产生大量diff这样会给其他人阅读代码带来极大的困扰。
1. 为了便于设置本项目引入editorconfig支持请使用Eclipse的同学在贡献代码前安装相关插件而IntelliJ IDEA新版本自带支持如果没有可自行安装插件。
1. **提交代码前请检查代码是否已经格式化并且保证新增加或者修改的方法都有完整的参数说明而public方法必须拥有相应的单元测试并通过测试。**
1. 本项目可以采用两种方式接受代码贡献:
- 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程因此在发起Pull Request的时候请选择develop分支详细步骤参考后文推荐使用此种方式贡献代码。
- ***暂停此种方式,请使用第一种***另外一种贡献代码的方式就是加入SDK Developers开发组前提是对自己的代码足够自信就可以申请加入加入之后可以随时直接提交代码但要注意对所做的修改或新增的代码进行单元测试保证提交代码没有明显问题。
### PR方式贡献代码步骤
* 在 GitHub 上 `fork` 到自己的仓库,如 `my_user/WxJava`,然后 `clone` 到本地,并设置用户信息。
```bash
$ git clone git@github.com:my_user/WxJava.git
$ cd WxJava
$ git config user.name "yourname"
$ git config user.email "your email"
```
* 修改代码后提交,并推送到自己的仓库。
```bash
$ #do some change on the content
$ git commit -am "Fix issue #1: change something"
$ git push
```
* 在 GitHub 网站上提交 Pull Request。
* 定期使用项目仓库内容更新自己仓库内容。
```bash
$ git remote add upstream https://github.com/Wechat-Group/WxJava
$ git fetch upstream
$ git checkout develop
$ git rebase upstream/develop
$ git push -f origin develop
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

BIN
images/banners/coding.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
images/banners/tcloud.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
images/banners/wiki.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
images/qrcodes/alipay.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
images/qrcodes/cp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

BIN
images/qrcodes/mp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
images/qrcodes/wepay.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

View File

View File

0
mvnw → others/mvnw vendored Executable file → Normal file
View File

View File

View File

@ -116,7 +116,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<httpclient.version>4.5</httpclient.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<jetty.version>9.4.17.v20190418</jetty.version>
</properties>
<dependencyManagement>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 13 KiB