Kaynağa Gözat

配置开关

root 3 yıl önce
ebeveyn
işleme
1dab9389c1
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      common/helpers/bonus/BonusCalc.php

+ 4 - 2
common/helpers/bonus/BonusCalc.php

@@ -261,9 +261,11 @@ class BonusCalc extends BaseObject {
             // }
 
             // 计算店服务奖 月奖
-            $this->calcStoreBonus();
+            if($this->_sysConfig['openStore']['VALUE']) {
+                $this->calcStoreBonus();
+            }
             $t16 = microtime(true);
-            echo('计算店服务奖金'.($this->_sysConfig['openYC']['VALUE']?'完成':'关闭').',耗时:' . round($t16 - $t13, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
+            echo('计算店服务奖金'.($this->_sysConfig['openStore']['VALUE']?'完成':'关闭').',耗时:' . round($t16 - $t13, 3) . ',内存使用:' . (round(memory_get_usage() / 1024 / 1024, 3)) . 'MB' . PHP_EOL);
             $this->_updatePercent(55);
 
             if($this->_sysConfig['openVIP']['VALUE']) {