From 741cd2bbe8732d1c0cf5371eb888c1fddc3c5d80 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Thu, 4 Aug 2022 13:54:50 +0800 Subject: [PATCH] order:profit --- app/Services/DistributeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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