|
|
@@ -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) {
|