refactor(pay): 暂停使用 FIUU 支付的返回 URL 和 Java 回调接口
- 注释掉 FIUUController 中的 returnurl 参数
- 更新 handlePaymentNotification 方法的注释
- 将 handlePaymentCallback 方法标记为暂时停止使用
- 注释掉 WebMvcConfigure 中的 /api/fuPay/callback 路径排除
| | |
| | | registration.excludePathPatterns("/api/xcxPay/wxpayCallback");
|
| | | registration.excludePathPatterns("/api/xcxPay/rechargeCallBack");
|
| | | registration.excludePathPatterns("/api/xcxPay/fapiaoCallBack");
|
| | | registration.excludePathPatterns("/api/fuPay/callback");
|
| | | // registration.excludePathPatterns("/api/fuPay/callback");
|
| | | registration.excludePathPatterns("/api/fuPay/notify");
|
| | |
|
| | | // 添加Swagger UI相关路径
|
| | |
| | | params.put("bill_desc", productNames); |
| | | params.put("currency", "MYR"); // 默认 MYR |
| | | params.put("vcode", vcode); |
| | | params.put("returnurl", returnUrl); |
| | | // params.put("returnurl", returnUrl); |
| | | |
| | | return new FebsResponse().success().data(params); |
| | | } catch (Exception e) { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * FIUU 回调接口 |
| | | * @param request |
| | | */ |
| | | @PostMapping("/notify") |
| | | public void handlePaymentNotification(HttpServletRequest request) { |
| | | // 1. 从POST请求中获取参数 |
| | |
| | | } |
| | | } |
| | | |
| | | // Java 回调接口 |
| | | // Java 通知接口 暂时停止使用 |
| | | @PostMapping("/callback") |
| | | public FebsResponse handlePaymentCallback(@RequestParam Map<String, String> params) { |
| | | String secretKey = "59c709fc18978a6a83b87f05d37cecbf"; |