diff --git a/app/Services/DistributeService.php b/app/Services/DistributeService.php index 44a83385..66549aea 100644 --- a/app/Services/DistributeService.php +++ b/app/Services/DistributeService.php @@ -176,8 +176,8 @@ class DistributeService // 商户订单号 $sn = serial_number(); foreach($list as $item) { - // 待付款, 同一收款用户 - if ($item->status === 4 && $item->user_id === $userId) { + // 待付款, 同一收款用户, 金额 > 0 + if ($item->status === 4 && $item->user_id === $userId && $item->money > 0) { $item->update([ 'status' => 1, 'pay_no' => $sn