|
|
@@ -147,8 +147,10 @@ class CustomClass extends BaseClass
|
|
|
$amount = $order->realPrice ?? 0;
|
|
|
$custom->isDebt = CustomClass::IS_DEBT_YES;
|
|
|
$debtLimit = $custom->debtLimit ?? 0;
|
|
|
- if ($custom->debtAmount > $debtLimit) {
|
|
|
- util::fail("您已欠款{$custom->debtAmount},请先结账哦");
|
|
|
+ if ($bookOrder == false) {
|
|
|
+ if ($custom->debtAmount > $debtLimit) {
|
|
|
+ util::fail("您已欠款{$custom->debtAmount},请先结账哦");
|
|
|
+ }
|
|
|
}
|
|
|
$balance = bcadd($custom->debtAmount, $amount, 2);
|
|
|
$custom->debtAmount = $balance;
|