Procházet zdrojové kódy

Merge branch 'new-version' into dev

kevin_zhangl před 3 roky
rodič
revize
c2db348c21
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      common/components/SwooleAsyncTimer.php

+ 3 - 1
common/components/SwooleAsyncTimer.php

@@ -72,7 +72,9 @@ class SwooleAsyncTimer extends SwooleAsyncTimerComponent implements SocketInterf
             // 初始化备份历史奖金数据表
 //            TaskFunc::initAutoBakBalance();
             // 初始化自动发送钉钉推送消息
-            TaskFunc::initAutoSendDingTalk();
+            if (YII_ENV == YII_ENV_PROD) {
+                TaskFunc::initAutoSendDingTalk();
+            }
         }
     }