diff --git a/cash-api/order-server/src/main/java/com/czg/controller/OrderPayController.java b/cash-api/order-server/src/main/java/com/czg/controller/OrderPayController.java index dc4957571..87090a1ad 100644 --- a/cash-api/order-server/src/main/java/com/czg/controller/OrderPayController.java +++ b/cash-api/order-server/src/main/java/com/czg/controller/OrderPayController.java @@ -121,13 +121,13 @@ public class OrderPayController { * 获取店铺订单支付URL */ @GetMapping("/shopPayApi/orderPayUrl") - public CzgResult getOrderPayUrl(@RequestHeader Long shopId, Long orderId, @RequestParam(required = false) String extend, - @RequestParam(required = false) CheckOrderPay checkOrderPay) { + public CzgResult getOrderPayUrl(@RequestHeader Long shopId,@RequestParam(required = false) String extend, + CheckOrderPay checkOrderPay) { AssertUtil.isNull(shopId, "店铺id不能为空"); - AssertUtil.isNull(orderId, "订单Id不能为空"); + AssertUtil.isNull(checkOrderPay, "订单信息不能为空"); Map map = new HashMap<>(); map.put("shopId", shopId); - map.put("orderId", orderId); + map.put("orderId", checkOrderPay.getOrderId()); map.put("payAmount", checkOrderPay.getOrderAmount()); map.put("extend", StrUtil.isEmpty(extend) ? "" : extend); if (checkOrderPay.getOrderId() != null) {