Procházet zdrojové kódy

Merge branch 'master' into feature/dev-frontend-ui

kevin_zhangl před 3 roky
rodič
revize
dff2c9e896
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

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