Quellcode durchsuchen

测试关闭开启奖金计算

zxiansheng vor 4 Jahren
Ursprung
Commit
431a79d37a
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      common/helpers/bonus/BonusCalc.php

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

@@ -268,14 +268,14 @@ class BonusCalc extends BaseObject {
             if($this->_sysConfig['openJXS']['VALUE']) {
                 $this->calcBonusStandard();
             }
-             
+            $t18 = microtime(true);
             echo('计算达标奖'.($this->_sysConfig['openJXS']['VALUE']?'完成':'关闭').',耗时:' . round($t18 - $t17, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
             $this->_updatePercent(65);
 
             // 蓝星奖入库,实际上是插入有奖金会员数据缓存中.
             $this->calcBonusBsGL();
-            $t18 = microtime(true);
-            echo('计算蓝星管理奖'.($this->_sysConfig['openGL']['VALUE']?'完成':'关闭').',耗时:' . round($t18 - $t17, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
+            $t18temp = microtime(true);
+            echo('计算蓝星管理奖'.($this->_sysConfig['openGL']['VALUE']?'完成':'关闭').',耗时:' . round($t18temp - $t18, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
             $this->_updatePercent(65);
 
             //把奖金会员写入缓存