diff --git a/order/order-application/src/main/java/cn/iocoder/mall/order/application/controller/users/UsersOrderController.java b/order/order-application/src/main/java/cn/iocoder/mall/order/application/controller/users/UsersOrderController.java index 8032ebdd9..24764e722 100644 --- a/order/order-application/src/main/java/cn/iocoder/mall/order/application/controller/users/UsersOrderController.java +++ b/order/order-application/src/main/java/cn/iocoder/mall/order/application/controller/users/UsersOrderController.java @@ -37,7 +37,7 @@ public class UsersOrderController { public CommonResult createOrder(@RequestBody @Validated OrderCreatePO orderCreatePO) { Integer userId = UserSecurityContextHolder.getContext().getUserId(); OrderCreateDTO orderCreateDTO = OrderConvertAPP.INSTANCE.convert(orderCreatePO); - orderCreateDTO.setUserId(1); + orderCreateDTO.setUserId(userId); return orderService.createOrder(orderCreateDTO); } }