|
|
@@ -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 计算房产奖
|
|
|
|