mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-20 16:06:13 +08:00
针对拦截器做了一些处理,简化开发者判断处理
This commit is contained in:
@@ -288,7 +288,8 @@ public class PayMessageRouterRule {
|
||||
// 如果拦截器不通过
|
||||
for (PayMessageInterceptor interceptor : this.interceptors) {
|
||||
if (!interceptor.intercept(payMessage, context, payService)) {
|
||||
return null;
|
||||
//这里直接返回成功,解决外层判断问题
|
||||
return payService.successPayOutMessage(payMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package com.egzosn.pay.common.api;
|
||||
|
||||
import com.egzosn.pay.common.bean.MethodType;
|
||||
import com.egzosn.pay.common.bean.PayOrder;
|
||||
import com.egzosn.pay.common.bean.PayOutMessage;
|
||||
import com.egzosn.pay.common.bean.TransactionType;
|
||||
import com.egzosn.pay.common.bean.*;
|
||||
import com.egzosn.pay.common.exception.PayErrorException;
|
||||
import com.egzosn.pay.common.http.HttpConfigStorage;
|
||||
import com.egzosn.pay.common.http.HttpRequestTemplate;
|
||||
@@ -126,6 +123,14 @@ public interface PayService {
|
||||
*/
|
||||
PayOutMessage getPayOutMessage(String code, String message);
|
||||
|
||||
/**
|
||||
* 获取成功输出消息,用户返回给支付端
|
||||
* 主要用于拦截器中返回
|
||||
* @param payMessage 支付回调消息
|
||||
* @return 返回输出消息
|
||||
*/
|
||||
PayOutMessage successPayOutMessage(PayMessage payMessage);
|
||||
|
||||
/**
|
||||
* 获取输出消息,用户返回给支付端, 针对于web端
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user