diff --git a/application/common/service/OrderService.php b/application/common/service/OrderService.php index 3db2daa..e9d6afe 100755 --- a/application/common/service/OrderService.php +++ b/application/common/service/OrderService.php @@ -44,6 +44,14 @@ class OrderService if (!$seller_order) { return false; } + $buyer_amount = abs(array_sum(array_column($buyer_order, "pay_amount"))); + $seller_amount = abs(array_sum(array_column($seller_order, "pay_amount"))); + // var_dump($buyer_amount); + // var_dump($seller_amount); + // exit(); + if ($buyer_amount != $seller_amount) { + return false; + } $order = array_merge($buyer_order, $seller_order); $order_new = []; foreach ($order as $value) {