|
@@ -96,6 +96,19 @@ public class OrderController {
|
|
|
return ResponseHelper.success(buy);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @PostMapping("/buytest")
|
|
|
+ @ApiOperation("立即购买")
|
|
|
+ public ResponseHelper<PayDetail> buytest(
|
|
|
+ @ApiParam(value = "支付人用户id",required = false) @RequestParam(required = false) String orderId,
|
|
|
+ @ApiParam(value = "订单id",required = true) @RequestParam BigDecimal amount,
|
|
|
+ HttpServletRequest request
|
|
|
+ ) throws Exception {
|
|
|
+
|
|
|
+ PayDetail buy = orderLogic.buytest(orderId,amount ,request);
|
|
|
+ return ResponseHelper.success(buy);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/wait/pay")
|
|
|
@ApiOperation("支付待支付订单")
|
|
|
public ResponseHelper<PayDetail> waitPayOrder(
|