|
|
|
@ -305,7 +305,18 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
|
|
|
|
|
// 校验订单总金额
|
|
|
|
if ($totalAmount != $totalMoney) { |
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_TOTAL_AMOUNT_ERROR); |
|
|
|
throw new ErrorCodeException( |
|
|
|
ErrorCode::ORDER_TOTAL_AMOUNT_ERROR, |
|
|
|
'', |
|
|
|
[ |
|
|
|
'total_amount' => $totalAmount, |
|
|
|
'total_money' => $totalMoney, |
|
|
|
'deliveryAmount' => $deliveryAmount, |
|
|
|
'$orderAmount' => $orderAmount, |
|
|
|
'serviceMoney' => $serviceMoney, |
|
|
|
'couponMoney' => $couponMoney, |
|
|
|
] |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
// 校验订单总金额是否满足起送
|
|
|
|
|