From 545e1b337110280d92998ca7eb2614deeb17b00d Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Mon, 1 Apr 2024 17:45:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E4=BD=A3=E9=80=BB=E8=BE=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/shopro/service/CommissionScoreLog.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/shopro/service/CommissionScoreLog.php b/addons/shopro/service/CommissionScoreLog.php index 4bdebb5..a1f9dd0 100644 --- a/addons/shopro/service/CommissionScoreLog.php +++ b/addons/shopro/service/CommissionScoreLog.php @@ -103,7 +103,7 @@ class CommissionScoreLog return true; } - //1.非用户角色下单立即反积分 并且给公司账户返积分 + //1.非用户角色下单立即反积分 if ($initLevel > self::LEVEL_1 && $currentCommissionLevel == 1) { $amount = bcsub($order['goods_price'], $current_level_price, 2); //算积分 @@ -144,8 +144,9 @@ class CommissionScoreLog //4.向上反佣金 if ($parentLevel > $currentLevel) { $amount = bcsub($current_level_price, $parent_level_price, 2); - //如果当前当前用户等级是会员 按原价算 - if($currentLevel == self::LEVEL_2) { + //如果当前当前用户等级是上级是会员 按原价算 +// if($currentLevel == self::LEVEL_2) { + if($initLevel == self::LEVEL_1 && $sonLevel == self::LEVEL_2) { $amount = bcsub($order['goods_price'], $parent_level_price, 2); } \think\Log::info('上级商品价格'.$parent_level_price);