Commit 5ae8256e by huluobin

fix

parent a1a24c20
...@@ -46,7 +46,10 @@ public class MallOrderController { ...@@ -46,7 +46,10 @@ public class MallOrderController {
@PostMapping("/customer/mallOrder/immediatePurchase") @PostMapping("/customer/mallOrder/immediatePurchase")
public JsonResult<MallOrder> immediatePurchase(@RequestHeader String token, public JsonResult<MallOrder> immediatePurchase(@RequestHeader String token,
@RequestBody ImmediatePurchaseCommand cmd) { @RequestBody ImmediatePurchaseCommand cmd) {
log.info("token:{}", token);
log.info("token:{}", SessionUtils.getCustomerToken().toString());
Integer currentCustomerId = SessionUtils.getCustomerId();
cmd.setCustomerId(currentCustomerId);
mallOrderService.immediatePurchase(cmd); mallOrderService.immediatePurchase(cmd);
MallOrder mallOrder = mallOrderService.getMallOrderAggregate(cmd.getExecutionResult()); MallOrder mallOrder = mallOrderService.getMallOrderAggregate(cmd.getExecutionResult());
return JsonResult.success(mallOrder); return JsonResult.success(mallOrder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment