From 862288470a25d1f18828c2161e7cad72a399a99e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 20 Jul 2023 18:01:27 +0800 Subject: [PATCH] 购买民宿卷商品,支付完,订单就已经完成 --- src/main/java/cc/mrbird/febs/mall/controller/ApiMallOrderController.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallOrderController.java b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallOrderController.java index ba25382..5cb2f69 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallOrderController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallOrderController.java @@ -24,6 +24,7 @@ **/ @Slf4j @Validated +@CrossOrigin @RestController @RequiredArgsConstructor @RequestMapping(value = "/api/order") @@ -33,6 +34,12 @@ private final IApiMallOrderInfoService mallOrderInfoService; private final IXcxPayService iXcxPayService; + @ApiOperation(value = "创建订单--验证是否允许创建", notes = "创建订单--验证是否允许创建") + @PostMapping(value = "/createOrderVerify") + public FebsResponse createOrderVerify(@RequestBody ApiCreateOrderVerifyDto apiCreateOrderVerifyDto) { + return mallOrderInfoService.createOrderVerify(apiCreateOrderVerifyDto); + } + @ApiOperation(value = "创建订单", notes = "创建订单") @PostMapping(value = "/createOrder") public FebsResponse createOrder(@RequestBody AddOrderDto addOrderDto) { -- Gitblit v1.9.1