Explorar el Código

修改发送消息提醒环境限制

kevin_zhangl hace 3 años
padre
commit
5d45ba9022
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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::initAutoBakBalance();
             // 初始化自动发送钉钉推送消息
             // 初始化自动发送钉钉推送消息
-            TaskFunc::initAutoSendDingTalk();
+            if (YII_ENV == YII_ENV_PROD) {
+                TaskFunc::initAutoSendDingTalk();
+            }
         }
         }
     }
     }