|
|
|
@ -144,7 +144,7 @@ class CommissionScoreLog |
|
|
|
|
//4.向上反佣金 |
|
|
|
|
if ($parentLevel > $currentLevel) { |
|
|
|
|
$amount = bcsub($current_level_price, $parent_level_price, 2); |
|
|
|
|
//如果当前当前用户等级是上级是会员 按原价算 |
|
|
|
|
//5.如果初始用户等级普通用户 上级是会员 会员上级按原价算 |
|
|
|
|
// if($currentLevel == self::LEVEL_2) { |
|
|
|
|
if($initLevel == self::LEVEL_1 && $sonLevel == self::LEVEL_2) { |
|
|
|
|
$amount = bcsub($order['goods_price'], $parent_level_price, 2); |
|
|
|
@ -159,7 +159,7 @@ class CommissionScoreLog |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//5.用户的上上级是高级 算团队2% 并给公司账户加钱 |
|
|
|
|
//6.用户的上上级是高级 算团队2% 并给公司账户加钱 |
|
|
|
|
if ($parentLevel == self::LEVEL_5 && $currentLevel == self::LEVEL_5 && $level5<2) { |
|
|
|
|
|
|
|
|
|
if ($level5 == 0) { |
|
|
|
@ -182,7 +182,7 @@ class CommissionScoreLog |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
//6.只有最后一级是高级时反公司积分 |
|
|
|
|
//7.只有最后一级是高级时反公司积分 |
|
|
|
|
if ($currentLevel == self::LEVEL_5 && $sonLevel != self::LEVEL_5 && $currentCommissionLevel > 1) { |
|
|
|
|
$this->calcCompany($current_level_price, $company_level_price); |
|
|
|
|
} |
|
|
|
|