瀏覽代碼

feature/NG-28: Adjusting Service Award Settlement.

kevin 1 年之前
父節點
當前提交
875a445f67
共有 1 個文件被更改,包括 5 次插入5 次删除
  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;
                 }