diff --git a/app/Service/v3/Implementations/OrderOnlineService.php b/app/Service/v3/Implementations/OrderOnlineService.php index bbce864..b4f0e42 100644 --- a/app/Service/v3/Implementations/OrderOnlineService.php +++ b/app/Service/v3/Implementations/OrderOnlineService.php @@ -244,7 +244,13 @@ class OrderOnlineService implements OrderOnlineServiceInterface // 校验订单总金额 if ($totalAmount != $totalMoney) { - throw new ErrorCodeException(ErrorCode::ORDER_TOTAL_AMOUNT_ERROR); + throw new ErrorCodeException(ErrorCode::ORDER_TOTAL_AMOUNT_ERROR, json_encode([ + '计算的总订单金额:' => $totalAmount, + '前端的订单总金额:' => $totalMoney, + 'Delivery:' => $deliveryAmount, + 'Service:' => $serviceMoney, + 'Coupon:' => $couponMoney, + ])); } $dataMain = [