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