GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 针对拦截器进行优化,简化开发者判断处理 · GitTeng/pay-java-parent@13c501b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pay-java-ali/src/main/java/com/egzosn/pay/ali/before/api
    • AliPayService.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pay-java-ali/src/main/java/com/egzosn/pay/ali/before/api/AliPayService.java‎

Copy file name to clipboardExpand all lines: pay-java-ali/src/main/java/com/egzosn/pay/ali/before/api/AliPayService.java
+14-4Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
import com.egzosn.pay.common.api.BasePayService;
77
import com.egzosn.pay.common.api.Callback;
88
import com.egzosn.pay.common.api.PayConfigStorage;
9-
import com.egzosn.pay.common.bean.MethodType;
10-
import com.egzosn.pay.common.bean.PayOrder;
11-
import com.egzosn.pay.common.bean.PayOutMessage;
12-
import com.egzosn.pay.common.bean.TransactionType;
9+
import com.egzosn.pay.common.bean.*;
1310
import com.egzosn.pay.common.bean.result.PayException;
1411
import com.egzosn.pay.common.exception.PayErrorException;
1512
import com.egzosn.pay.common.http.HttpConfigStorage;
@@ -253,6 +250,19 @@ public Map<String, Object> getParameter2Map(Map<String, String[]> parameterMap,
253250
public PayOutMessage getPayOutMessage(String code, String message) {
254251
return PayOutMessage.TEXT().content(code.toLowerCase()).build();
255252
}
253+
254+
/**
255+
* 获取成功输出消息,用户返回给支付端
256+
* 主要用于拦截器中返回
257+
* @param payMessage 支付回调消息
258+
* @return 返回输出消息
259+
*/
260+
@Override
261+
public PayOutMessage successPayOutMessage(PayMessage payMessage) {
262+
return PayOutMessage.TEXT().content("success").build();
263+
}
264+
265+
256266
/**
257267
* 获取输出消息,用户返回给支付端, 针对于web端
258268
*

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.