|
|
|
@ -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) { |
|
|
|
|