From d7da7063db36a1ece81957252cd1ed0a59990b74 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Mon, 23 Oct 2023 14:09:36 +0800 Subject: [PATCH] =?UTF-8?q?order=20=E6=B2=A1=E6=9C=89=E6=8F=90=E6=88=90=20?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=97=B6=20=E4=B8=8D=E5=88=86=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index 0013c0a8..bbabae94 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -1245,8 +1245,9 @@ class OrderService $user = $order->user; $agentIds = User::whereIn('id', $user->userInfo->parent_ids)->pluck('agent_id'); $ratio = Agent::whereIn('id', $agentIds)->sum('ratio'); + $profit = $ratio * $order->sales_value; // 没有提成 - if ($ratio == 0) { + if ($profit == 0) { $share = 'N'; }