|
|
@@ -618,12 +618,12 @@ LoggerTool::debug(json_encode(['FWBonusPerfData-P4', $userId, $bonusUserId, $dec
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- // 计算奖金比例了
|
|
|
- $parentDecRoleLevel = $this->_decRoleConfig[$decRoleId];
|
|
|
- $parentFwBonusPercent = $parentDecRoleLevel['FW_BONUS_PERCENT'] ?? 0;
|
|
|
+ // 计算奖金比例
|
|
|
+ $decRoleLevel = $this->_decRoleConfig[$decRoleId];
|
|
|
+ $fwBonusPercent = $decRoleLevel['FW_BONUS_PERCENT'] ?? 0;
|
|
|
$cacheMaxPercent = CalcCache::fwMaxBonusPercent($bonusUserId, $this->_periodNum);
|
|
|
- $diffPercent = $parentFwBonusPercent - $cacheMaxPercent;
|
|
|
-LoggerTool::debug(json_encode(['FWBonusPerfData-P5', $userId, $bonusUserId, $diffPercent]));
|
|
|
+ $diffPercent = $fwBonusPercent - $cacheMaxPercent;
|
|
|
+LoggerTool::debug(json_encode(['FWBonusPerfData-P5', $userId, $bonusUserId, $fwBonusPercent, $cacheMaxPercent, $diffPercent]));
|
|
|
if ($diffPercent <= 0) {
|
|
|
continue;
|
|
|
}
|