|
|
@@ -52,9 +52,9 @@ class OrderClearClass extends BaseClass
|
|
|
foreach ($orderList as $order) {
|
|
|
$orderId = $order->id ?? 0;
|
|
|
$remainDebtPrice = $order->remainDebtPrice ?? 0;
|
|
|
- $totalAmount = bcadd($totalAmount, $remainDebtPrice, 2);
|
|
|
if ($totalAmount <= $customBalance) {
|
|
|
$need[] = ['id' => $orderId];
|
|
|
+ $totalAmount = bcadd($totalAmount, $remainDebtPrice, 2);
|
|
|
} else {
|
|
|
break;
|
|
|
}
|