From 048c18784ad741593d7844672daf5e3ae62c3e86 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Mon, 23 Oct 2023 13:48:21 +0800 Subject: [PATCH] wx_share finish --- app/Services/DistributeService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Services/DistributeService.php b/app/Services/DistributeService.php index d3c2b32c..ddb294e1 100644 --- a/app/Services/DistributeService.php +++ b/app/Services/DistributeService.php @@ -116,6 +116,9 @@ class DistributeService continue; } $money = floor($sales_value * $agent->ratio) / 100 - $money_sum; + if ($money <= 0) { + continue; + } array_unshift($profit_list, [ 'from_user_id' => $user->id, 'user_id' => $item->id,