Explorar o código

Merge branch 'new-version' into dev

kevin_zhangl %!s(int64=3) %!d(string=hai) anos
pai
achega
c2db348c21
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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();
+            }
         }
     }