增加注释。

This commit is contained in:
egzosn
2017-10-26 18:44:29 +08:00
parent a7f9719057
commit 1401334d9e
20 changed files with 219 additions and 156 deletions

View File

@@ -1,6 +1,6 @@
### 快速入门
#####1.支付整合配置
##### 1.支付整合配置
```java
@@ -220,7 +220,7 @@ public class PayResponse {
```
#####2.支付处理器与拦截器简单实现
##### 2.支付处理器与拦截器简单实现
```java
/**
@@ -271,7 +271,7 @@ public class PayResponse {
```
#####3.支付响应PayResponse的获取
##### 3.支付响应PayResponse的获取
```java
@@ -318,7 +318,7 @@ public class ApyAccountService {
```
#####4.根据账户id与业务id组拼订单信息支付宝、微信支付订单获取支付信息所需的数据
##### 4.根据账户id与业务id组拼订单信息支付宝、微信支付订单获取支付信息所需的数据
```java
@@ -466,7 +466,7 @@ public class ApyAccountService {
```
#####5.支付回调
##### 5.支付回调
```java

View File

@@ -23,7 +23,9 @@ public class ApyAccountService {
@Resource
private AutowireCapableBeanFactory spring;
//缓存
/**
* 缓存
*/
private final static Map<Integer, PayResponse> payResponses = new HashMap<Integer, PayResponse>();
/**

View File

@@ -92,10 +92,14 @@ public class PayResponse {
router
.rule()
.async(false)
.msgType(MsgType.text.name()) //消息类型
.payType(PayType.aliPay.name()) //支付账户事件类型
.interceptor(new AliPayMessageInterceptor()) //拦截器
.handler(autowire(new AliPayMessageHandler(payId))) //处理器
//消息类型
.msgType(MsgType.text.name())
//支付账户事件类型
.payType(PayType.aliPay.name())
//拦截器
.interceptor(new AliPayMessageInterceptor())
//处理器
.handler(autowire(new AliPayMessageHandler(payId)))
.end()
.rule()
.async(false)