Browse Source

测试奖金计算

theo 3 years ago
parent
commit
7c38ecc497
1 changed files with 8 additions and 8 deletions
  1. 8 8
      common/helpers/bonus/BonusCalc.php

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

@@ -328,16 +328,16 @@ class BonusCalc extends BaseObject {
             $this->_updatePercent(80);
 
             // 计算基础积分,不可以奖金入库之前计算这样可能会丢掉只有本期的奖金的会员
-            $this->calcBaseScore();
-            $this->_updatePercent(90);
-            $t22 = microtime(true);
-            echo('计算基础积分,耗时:' . round($t22 - $t21, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
+//            $this->calcBaseScore();
+//            $this->_updatePercent(90);
+//            $t22 = microtime(true);
+//            echo('计算基础积分,耗时:' . round($t22 - $t21, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
 
             //积分入库
-            $this->loopWriteScore();
-            $this->_updatePercent(100);
-            $t23 = microtime(true);
-            echo('积分写库操作完成,耗时:' . round($t23 - $t22, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
+//            $this->loopWriteScore();
+//            $this->_updatePercent(100);
+//            $t23 = microtime(true);
+//            echo('积分写库操作完成,耗时:' . round($t23 - $t22, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
 
             //@todo 计算房产奖