瀏覽代碼

修改车房奖取值

kevin_zhangl 3 年之前
父節點
當前提交
fb48546e2c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      common/helpers/bonus/BonusCalc.php

+ 2 - 2
common/helpers/bonus/BonusCalc.php

@@ -1695,7 +1695,7 @@ class BonusCalc extends BaseObject {
             $starDirectorPoint = $this->_empLevelConfig[$userStarDirectorObj[$userId]['LEVEL_ID']]['TOURISM_PERCENT'] ?? 0;
             $startCrownPoint = $this->_starCrownLevelConfig[$userStarCrownObj[$userId]['LAST_STAR_LV']]['TOURISM_PERCENT'] ?? 0;
             // 奖金比例:
-            $bonusPoint = max($starDirectorPoint, $startCrownPoint);
+            $bonusPoint = min($starDirectorPoint, $startCrownPoint);
             // 计算奖金
             $amount = Tool::formatPrice(($monthTotalPV * $mate * $bonusPoint) / 100);
             if ($amount <= 0) {
@@ -1790,7 +1790,7 @@ class BonusCalc extends BaseObject {
             $starDirectorPoint = !isset($userStarDirectorObj[$userId]['LEVEL_ID']) ? 0 : ($this->_empLevelConfig[$userStarDirectorObj[$userId]['LEVEL_ID']]['GARAGE_PERCENT'] ?? 0);
             $startCrownPoint = !isset($userStarCrownObj[$userId]['LAST_STAR_LV']) ? 0: ($this->_starCrownLevelConfig[$userStarCrownObj[$userId]['LAST_STAR_LV']]['GARAGE_PERCENT'] ?? 0);
             // 奖金比例:
-            $bonusPoint = max($starDirectorPoint, $startCrownPoint);
+            $bonusPoint = min($starDirectorPoint, $startCrownPoint);
             // 计算奖金
             $amount = Tool::formatPrice(($monthTotalPV * $mate * $bonusPoint) / 100);
             if ($amount <= 0) {