mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 04:27:55 +00:00
feat 支付流程改为先落库, 后支付
This commit is contained in:
@@ -4,6 +4,7 @@ import cn.bootx.platform.common.core.annotation.IgnoreAuth;
|
||||
import cn.bootx.platform.common.core.exception.BizException;
|
||||
import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import cn.bootx.platform.daxpay.service.core.channel.alipay.service.AliPayTransferService;
|
||||
import cn.hutool.core.thread.ThreadUtil;
|
||||
import com.baomidou.lock.LockInfo;
|
||||
import com.baomidou.lock.LockTemplate;
|
||||
@@ -27,6 +28,7 @@ import java.util.Objects;
|
||||
@RequiredArgsConstructor
|
||||
public class TestController {
|
||||
private final LockTemplate lockTemplate;
|
||||
private final AliPayTransferService aliPayTransferService;
|
||||
|
||||
@Operation(summary = "锁测试1")
|
||||
@GetMapping("/lock1")
|
||||
@@ -54,7 +56,15 @@ public class TestController {
|
||||
@Operation(summary = "微信回调测试")
|
||||
@GetMapping(value = {"/wxcs/","wxcs"})
|
||||
public String wxcs(){
|
||||
return "ok";
|
||||
}
|
||||
|
||||
@IgnoreAuth
|
||||
@Operation(summary = "支付宝回调测试")
|
||||
@GetMapping("/queryAmount")
|
||||
public String alipay(){
|
||||
|
||||
aliPayTransferService.queryAccountAmount();
|
||||
return "ok";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user