weizong song 1 year ago
parent c3e6e04273
commit f2d1d31858

@ -1565,9 +1565,6 @@ class OrdersController extends CommonController
$customer = $order->customer;
$currentBalance = (float)$customer->balance;
dd(gettype($totalPaid), gettype($currentBalance), float_equals($totalPaid, $currentBalance));
// 4. 如果支付总额等于用户余额,进行退款处理
if ($totalPaid > 0 && float_equals($totalPaid, $currentBalance)) {
foreach ($recharges as $recharge) {

Loading…
Cancel
Save