mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 12:39:38 +00:00
feat 各种分账各种问题解决和优化
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>cn.daxpay.single</groupId>
|
||||
<artifactId>daxpay-single</artifactId>
|
||||
<version>2.0.6</version>
|
||||
<version>2.0.7</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>daxpay-single-gateway</artifactId>
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package cn.daxpay.single.gateway.controller;
|
||||
|
||||
import cn.bootx.platform.common.core.annotation.IgnoreAuth;
|
||||
import cn.daxpay.single.service.core.channel.alipay.service.AliPayNoticeReceiverService;
|
||||
import com.ijpay.alipay.AliPayApi;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@@ -15,33 +16,29 @@ import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 网关消息通知
|
||||
* 支付通道消息通知
|
||||
* @author xxm
|
||||
* @since 2024/4/16
|
||||
*/
|
||||
@IgnoreAuth
|
||||
@Tag(name = "三方支付网关消息通知")
|
||||
@Tag(name = "执法通道网关消息通知")
|
||||
@RestController
|
||||
@RequestMapping("/gateway/notice")
|
||||
@RequestMapping("/callback/notice")
|
||||
@RequiredArgsConstructor
|
||||
public class PayNoticeReceiverController {
|
||||
|
||||
private final AliPayNoticeReceiverService aliPayNoticeReceiverService;
|
||||
|
||||
@Operation(summary = "支付宝消息通知")
|
||||
@PostMapping("/alipay")
|
||||
public String aliPayNotice(HttpServletRequest request) {
|
||||
Map<String, String> map = AliPayApi.toMap(request);
|
||||
// 通过 msg_method 获取消息类型
|
||||
String msgMethod = map.get("msg_method");
|
||||
// 通过 biz_content 获取值
|
||||
String bizContent = map.get("biz_content");
|
||||
|
||||
return "success";
|
||||
return aliPayNoticeReceiverService.noticeReceiver(map);
|
||||
}
|
||||
|
||||
@Operation(summary = "微信消息通知")
|
||||
@PostMapping("/wechat")
|
||||
public Map<String, Objects> wechatPayNotice() {
|
||||
public Map<String, Objects> wechatPayNotice(HttpServletRequest request) {
|
||||
return new HashMap<>();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user