|
|
@@ -607,14 +607,14 @@ class CalcServeBonusCalc extends BaseObject {
|
|
|
if( !isset($this->_decRoleConfig[$decRoleId]) ) return self::LOOP_CONTINUE;
|
|
|
|
|
|
// 取报单中心级别对应的拿奖比例
|
|
|
- $parentDecRoleLevel = $this->_decRoleConfig[$decRoleId];
|
|
|
- $parentFwBonusPercent = $parentDecRoleLevel['FW_BONUS_PERCENT'] ?? 0;
|
|
|
- $cacheMaxPercent = CalcCache::fwMaxBonusPercent($userId, $this->_periodNum);
|
|
|
- $diffPercent = $parentFwBonusPercent - $cacheMaxPercent;
|
|
|
- if( $diffPercent <= 0 ) return self::LOOP_CONTINUE;
|
|
|
-
|
|
|
- $fwBonus = $validPvPcs * $diffPercent / 100;
|
|
|
- if( $fwBonus <= 0 ) return self::LOOP_CONTINUE;
|
|
|
+// $parentDecRoleLevel = $this->_decRoleConfig[$decRoleId];
|
|
|
+// $parentFwBonusPercent = $parentDecRoleLevel['FW_BONUS_PERCENT'] ?? 0;
|
|
|
+// $cacheMaxPercent = CalcCache::fwMaxBonusPercent($userId, $this->_periodNum);
|
|
|
+// $diffPercent = $parentFwBonusPercent - $cacheMaxPercent;
|
|
|
+// if( $diffPercent <= 0 ) return self::LOOP_CONTINUE;
|
|
|
+//
|
|
|
+// $fwBonus = $validPvPcs * $diffPercent / 100;
|
|
|
+// if( $fwBonus <= 0 ) return self::LOOP_CONTINUE;
|
|
|
|
|
|
//给本人添加服务奖比例
|
|
|
// CalcCache::fwMaxBonusPercent($userId, $this->_periodNum, $parentFwBonusPercent);
|