Ver Fonte

bugfix:车房奖计算

kevin_zhangl há 3 anos atrás
pai
commit
717d7c4d4e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      common/helpers/bonus/BonusCalc.php

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

@@ -1808,7 +1808,7 @@ class BonusCalc extends BaseObject {
             $amount = ($amount > $capBonus) ? $capBonus : $amount;
 
             // 会员级别+聘级都达到要求才会发放奖金
-            if (in_array($userStarDirectorObj[$userId]['LAST_DEC_LV'], $minDecLevel)) {
+            if (isset($userStarDirectorObj[$userId]) && in_array($userStarDirectorObj[$userId]['LAST_DEC_LV'], $minDecLevel)) {
                 // 放入缓存
                 CalcCache::garageBonus($userId, $this->_periodNum, $amount);
                 // 加入月奖的会员