Parcourir la source

feature/NG-28: Adjusting Service Award Settlement.

kevin il y a 1 an
Parent
commit
875a445f67
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      common/helpers/bonus/CalcServeBonusCalc.php

+ 5 - 5
common/helpers/bonus/CalcServeBonusCalc.php

@@ -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;
                 }