zxiansheng 4 years ago
parent
commit
d66d5eb244
1 changed files with 3 additions and 10 deletions
  1. 3 10
      common/helpers/bonus/BonusCalc.php

+ 3 - 10
common/helpers/bonus/BonusCalc.php

@@ -273,18 +273,11 @@ class BonusCalc extends BaseObject {
             // $this->_updatePercent(65);
 
             // 蓝星奖入库,实际上是插入有奖金会员数据缓存中.
-            //if($this->_sysConfig['openGL']['VALUE']) {
-                $this->calcBonusBsGL(); // ===============================todo===================
-            // }
+            $this->calcBonusBsGL();
             $t18 = microtime(true);
             echo('计算蓝星管理奖'.($this->_sysConfig['openGL']['VALUE']?'完成':'关闭').',耗时:' . round($t18 - $t17, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
             $this->_updatePercent(65);
 
-
-            // 1. 封期 2. 执行 存储过程,月奖要插入到AR_CALC_MONTH_BONUS_USER表中. 这里直接入库
-            // 存储过程分2部分,一部分插入到月奖表中. 一部分计算真正奖金数据.分2部分进行执行.
-            //把奖金会员写入缓存 - 把往期有月奖金的会员加到本期有奖会员缓存列表中
-            // 比如如果重复执行,将此用户放到有奖金用户缓存中,统一插入.
             $this->loopMonthBonusUserFromDbToCache();
             $t19 = microtime(true);
             echo('奖金会员写入缓存完成,耗时:' . round($t19 - $t18, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
@@ -3045,11 +3038,11 @@ class BonusCalc extends BaseObject {
         $bonusReal = $bonus['BONUS_BD'] + $bonus['BONUS_TG'] + $bonus['BONUS_XF'] + $bonus['BONUS_YJ'] + $bonus['BONUS_QY'] + $bonus['BONUS_YC'] + $bonus['BONUS_YC_EXTRA'] + $bonus['BONUS_VIP'] + $standardBonus;
         $realBonusGx = 0;
         $realBonusGl = 0;
-        $realBonusBs = 0; // 蓝星奖,顶替原来的管理奖. BlueStar
+        $realBonusBs = 0; // 蓝星管理奖. BlueStar
         $blueStartAmount = 0;
         $buleStartOriBonus = 0;
         $buleStartManageTax = 0;
-        $exchangePoints = 0; // 蓝星奖,即新的管理奖. 产生的兑换积分
+        $exchangePoints = 0; // 蓝星奖管理奖. 产生的兑换积分
         if( $this->_isCalcMonth ) {
             //查看是否复消300
             $monthPerfData = CalcCache::nowMonthPerf($userId, $this->_periodNum);